diff --git a/commit_text b/commit_text index 38e6e54..579abf1 100644 --- a/commit_text +++ b/commit_text @@ -1 +1 @@ -Nixos label fixing regex, fixes #10 +Set up nh as nixos module instead of simple program diff --git a/configuration.nix b/configuration.nix index 1adf2a4..fe39a3c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -62,8 +62,6 @@ let nixos-shell python3 - nh - haskell.compiler.ghcHEAD dotnet-sdk_9 netcoredbg @@ -122,9 +120,12 @@ in "flakes" ]; nix.settings.auto-optimise-store = true; - nix.gc = { - automatic = true; - options = "--delete-older-than 14d"; + + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 7d --keep 5"; + flake = "/home/esvagy/nixos"; }; # Bootloader.