diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index ea9ca5b..96e9a05 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -11,6 +11,7 @@ ../../modules/nix/nvidia.nix ../../modules/nix/grub.nix ../../modules/nix/nvf.nix + ../../modules/nix/nh.nix ]; home-manager = { @@ -157,11 +158,4 @@ programs.firefox.enable = true; programs.zsh.enable = true; - - programs.nh = { - enable = true; - clean.enable = true; - clean.extraArgs = "--keep-since 30d --keep 10"; - flake = "/home/smayzy/nix-config"; - }; } diff --git a/modules/nix/nh.nix b/modules/nix/nh.nix new file mode 100644 index 0000000..88f17fe --- /dev/null +++ b/modules/nix/nh.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ...}: +{ +programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 30d --keep 10"; + flake = "/home/smayzy/nix-config"; + }; +}