Compare commits

..

10 commits

Author SHA1 Message Date
f012eb6d2b Justfile: add nix-diff recipe 2024-02-23 13:43:25 +01:00
a9aa0dff00 Flake: add nix-diff to devshell 2024-02-23 13:24:03 +01:00
8b2709ae33 Justfile: add build-nixos recipe 2024-02-23 13:23:53 +01:00
e2d5273ed8 Add justfile 2024-02-23 12:32:17 +01:00
975b402ff7 Flake: add just to devshell 2024-02-23 12:32:04 +01:00
06ec510599 Add .envrc 2024-02-23 12:10:47 +01:00
61c2b3dcbb Common/direnv: enable nix-direnv 2024-02-23 12:08:19 +01:00
c0529d5225 Common: add direnv 2024-02-23 12:07:22 +01:00
2018954c98 Common/bash: enable VTE integration 2024-02-23 11:03:35 +01:00
7f8155840c Flake: change name of devshell 2024-02-23 10:42:44 +01:00
7 changed files with 40 additions and 2 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

4
.gitignore vendored
View file

@ -6,3 +6,7 @@ result-*
# ---> Kate # ---> Kate
# Ignore kate's swap files # Ignore kate's swap files
*.kate-swp *.kate-swp
# ---> Direnv
.direnv

17
.justfile Normal file
View file

@ -0,0 +1,17 @@
# Hide the default option from the recipes list
_default: print-recipes
find-results:
find . -name '*result*'
print-recipes:
@just --list
alias build := build-nixos
# Build a NixOS configuration
build-nixos host=`hostname`:
nixos-rebuild build --flake .#{{host}}
# nix-diff with some parameters piped to less
nix-diff left right:
nix-diff --color=always --skip-already-compared {{left}} {{right}} | less -F

View file

@ -101,13 +101,15 @@
in in
{ {
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell { devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
name = "Environment for toast's nixos configurations"; name = "toast-devshell";
# The agenix cli is not needed to activate a configuration, so instead of installing it # The agenix cli is not needed to activate a configuration, so instead of installing it
# I'll just add it to de devShell, since that's the only real time I'm going to use it. # I'll just add it to de devShell, since that's the only real time I'm going to use it.
packages = with nixpkgs.legacyPackages.x86_64-linux; [ packages = with nixpkgs.legacyPackages.x86_64-linux; [
agenix.packages.x86_64-linux.default agenix.packages.x86_64-linux.default
git git
nix-diff nix-diff
just
nix-diff
]; ];
shellHook ='' shellHook =''
export PS1="$PS1(toast-configs)> " export PS1="$PS1(toast-configs)> "

View file

@ -2,6 +2,9 @@
{ {
home-manager.users.toast = { config, ... }: { home-manager.users.toast = { config, ... }: {
programs.bash.enable = true; programs.bash = {
enable = true;
enableVteIntegration = true;
};
}; };
} }

View file

@ -14,6 +14,7 @@
./bat.nix ./bat.nix
./btop.nix ./btop.nix
./helix.nix ./helix.nix
./direnv.nix
]; ];
# Some programs dont have a programs.*.enable option, so I install their package here # Some programs dont have a programs.*.enable option, so I install their package here
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View file

@ -0,0 +1,10 @@
{ ... }:
{
programs.direnv = {
enable = true;
nix-direnv = {
enable = true;
};
};
}