From c75a44263b229a47a1ac98dc4d11172ffc80c9b4 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Sat, 14 Mar 2026 02:43:54 -0600 Subject: nh is a useful nix script --- modules/nixos/nix-common.nix | 20 ++++++++++++++------ 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" + # ]; } -- cgit v1.2.3