diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 03:05:59 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 03:05:59 -0600 |
| commit | d34808ff2eaed9971bb55ce22695de31c6064979 (patch) | |
| tree | 85d590f3b114d49918749e03e312ca2796e41b00 /modules/nixos/nix-common.nix | |
| parent | a847a96fe2d6851ed57a3adfed141d6d65fe9f65 (diff) | |
| parent | c9039c07728de8dc268b76a568e015501e34d369 (diff) | |
Merge branch 'master' of ssh://bosco:/srv/git/.flake
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"; + # }; }; } |
