diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 02:43:54 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-14 02:43:54 -0600 |
| commit | c75a44263b229a47a1ac98dc4d11172ffc80c9b4 (patch) | |
| tree | 643556df8052a9be1b54c6a253270f142dde21fe /modules | |
| parent | c06ad13fdd0f316496464506e526a54dc87b773f (diff) | |
nh is a useful nix script
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nixos/nix-common.nix | 20 | ||||
| -rw-r--r-- | modules/nixos/system-packages.nix | 6 |
2 files changed, 17 insertions, 9 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"; + # }; }; } diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix index a38646b..07696ae 100644 --- a/modules/nixos/system-packages.nix +++ b/modules/nixos/system-packages.nix @@ -22,7 +22,7 @@ fonts.packages = with pkgs; [ hack-font ]; - nixpkgs.config.permittedInsecurePackages = [ - # "electron-33.4.11" - ]; + # nixpkgs.config.permittedInsecurePackages = [ + # # "electron-33.4.11" + # ]; } |
