diff --git a/hosts/galanthus/configuration.nix b/hosts/galanthus/configuration.nix index 9194eef..1eaf13d 100644 --- a/hosts/galanthus/configuration.nix +++ b/hosts/galanthus/configuration.nix @@ -1,4 +1,9 @@ -{ inputs, pkgs, ... }: +{ + inputs, + pkgs, + config, + ... +}: { imports = [ inputs.agenix.nixosModules.default @@ -52,6 +57,15 @@ enable = true; enableSSHSupport = true; }; + + nh = { + enable = true; + # clean = { ## nix.gc already handles this + # enable = true; + # extraArgs = "--keep-since 4d --keep 3"; + # }; + flake = "${config.users.users.jan.home}/.config/nix"; + }; }; environment.systemPackages = [ diff --git a/modules/home-manager/shell/default.nix b/modules/home-manager/shell/default.nix index b017f99..8c6996b 100644 --- a/modules/home-manager/shell/default.nix +++ b/modules/home-manager/shell/default.nix @@ -7,8 +7,7 @@ ]; home.shellAliases = { - "deploy" = - "ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; sudo nixos-rebuild switch --flake ~/.config/nix'"; + "deploy" = "ssh -t galanthus 'cd ~/.config/nix; git pull --rebase; nh os switch'"; "mv" = "mv -i"; "rm" = "trash"; "tree" = "lt";