diff --git a/nixos/configurations/Tytonidae/default.nix b/nixos/configurations/Tytonidae/default.nix index a9c83a1..91d2081 100644 --- a/nixos/configurations/Tytonidae/default.nix +++ b/nixos/configurations/Tytonidae/default.nix @@ -9,7 +9,6 @@ ./gui.nix ./users ./kvm.nix - ./nh.nix ./steam.nix # Include the hardware related config diff --git a/nixos/configurations/Tytonidae/nh.nix b/nixos/configurations/Tytonidae/nh.nix deleted file mode 100644 index 02b15ef..0000000 --- a/nixos/configurations/Tytonidae/nh.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - ... -}: -{ - programs.nh = { - enable = true; - clean.enable = true; - clean.extraArgs = "--keep-since 4d --keep 3"; - flake = ./..; - }; -} diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index e65e5d6..ea1ddad 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -19,6 +19,7 @@ ./sops.nix ./dae ./openssh.nix + ./nh.nix ]; config = { diff --git a/nixos/modules/nh.nix b/nixos/modules/nh.nix new file mode 100644 index 0000000..a8958fd --- /dev/null +++ b/nixos/modules/nh.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + config = { + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + }; + }; +}