move nh.nix to module

This commit is contained in:
ulic-youthlic 2025-01-13 17:22:50 +08:00
parent 7173c22a62
commit 7deeaa409b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 11 additions and 12 deletions

View file

@ -9,7 +9,6 @@
./gui.nix ./gui.nix
./users ./users
./kvm.nix ./kvm.nix
./nh.nix
./steam.nix ./steam.nix
# Include the hardware related config # Include the hardware related config

View file

@ -1,11 +0,0 @@
{
...
}:
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = ./..;
};
}

View file

@ -19,6 +19,7 @@
./sops.nix ./sops.nix
./dae ./dae
./openssh.nix ./openssh.nix
./nh.nix
]; ];
config = { config = {

10
nixos/modules/nh.nix Normal file
View file

@ -0,0 +1,10 @@
{ ... }:
{
config = {
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
};
};
}