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

@ -7,7 +7,6 @@
./hyprland.nix
./mangohud.nix
./mpv.nix
./nh.nix
./nnn.nix
./obs-studio.nix
./restic.nix
@ -18,7 +17,6 @@
crony.nnn.enable = lib.mkDefault true;
crony.mpv.enable = lib.mkDefault true;
crony.obs-studio.enable = lib.mkDefault true;
crony.nh.enable = lib.mkDefault true;
crony.restic.enable = lib.mkDefault true;
crony.hyprland.enable = lib.mkDefault true;
crony.browsers.enable = lib.mkDefault true;

View file

@ -1,21 +0,0 @@
{
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";
};
};
};
}