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

@ -19,6 +19,7 @@
./sops.nix
./dae
./openssh.nix
./nh.nix
];
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";
};
};
}