move nh config to module

This commit is contained in:
smayzy 2025-06-28 13:59:09 +00:00
parent 469b63bcfc
commit b80bbe97dc
2 changed files with 10 additions and 7 deletions

View File

@ -11,6 +11,7 @@
../../modules/nix/nvidia.nix ../../modules/nix/nvidia.nix
../../modules/nix/grub.nix ../../modules/nix/grub.nix
../../modules/nix/nvf.nix ../../modules/nix/nvf.nix
../../modules/nix/nh.nix
]; ];
home-manager = { home-manager = {
@ -157,11 +158,4 @@
programs.firefox.enable = true; programs.firefox.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 30d --keep 10";
flake = "/home/smayzy/nix-config";
};
} }

9
modules/nix/nh.nix Normal file
View File

@ -0,0 +1,9 @@
{ config, lib, pkgs, ...}:
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 30d --keep 10";
flake = "/home/smayzy/nix-config";
};
}