diff options
Diffstat (limited to 'modules/nixos/nix-common.nix')
| -rw-r--r-- | modules/nixos/nix-common.nix | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/nixos/nix-common.nix b/modules/nixos/nix-common.nix index c7b6fe5..80556a6 100644 --- a/modules/nixos/nix-common.nix +++ b/modules/nixos/nix-common.nix @@ -1,6 +1,14 @@ { config, pkgs, ... }: { imports = [./lix.nix]; - + + # Manage nix installation with helper script + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 30d --keep 3"; + flake = "/home/defin/.flake"; + }; + nix = { settings = { # Users allowed to run nix @@ -11,10 +19,10 @@ }; # Clean up old generations after 30 days - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 30d"; - }; + # gc = { + # automatic = true; + # dates = "weekly"; + # options = "--delete-older-than 30d"; + # }; }; } |
