feat: move home manager nh modules to nixos level.

This commit is contained in:
CronyAkatsuki 2025-04-03 20:45:05 +02:00
parent 7eb6e7fb86
commit bc1e5d6443
3 changed files with 2 additions and 2 deletions

View file

@ -21,6 +21,7 @@
./additional-hardware
./tailscale.nix
./sunshine.nix
./nh.nix
];
crony.bluetooth.enable = lib.mkDefault true;
@ -44,4 +45,5 @@
crony.additional-hardware.enable = lib.mkDefault true;
crony.tailscale.enable = lib.mkDefault true;
crony.sunshine.enable = lib.mkDefault true;
crony.nh.enable = lib.mkDefault true;
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: {
options = {
crony.nh.enable = lib.mkEnableOption "Enable nh and set it up for automatic cleaning.";
};
config = lib.mkIf config.crony.nh.enable {
# Install nh
programs.nh = {
enable = true;
flake = "/home/crony/Repos/nixos";
clean = {
enable = true;
extraArgs = "--keep 5 --keep-since 3d";
};
};
};
}