a few more additions

This commit is contained in:
Miguel Palhas
2026-06-27 14:16:30 +01:00
parent 559edbe89a
commit 4eeef628b0
12 changed files with 94 additions and 6 deletions
+15 -3
View File
@@ -18,10 +18,22 @@
];
warn-dirty = false;
};
gc = {
automatic = true;
options = "--delete-older-than 30d";
# GC is handled by `nh clean` below (keep-N / keep-since semantics).
# The two are mutually exclusive — nh asserts if nix.gc.automatic is on.
gc.automatic = false;
};
# nh: ergonomic nixos-rebuild wrapper. Auto-detects the target from the
# machine hostname (configs are named to match), so `nh os switch` needs
# no host arg. Runs as root, so its `clean` prunes system + user profiles.
programs.nh = {
enable = true;
flake = "/home/naps62/projects/nixos-config";
clean = {
enable = true;
extraArgs = "--keep 10 --keep-since 7d";
};
};
nixpkgs.config.allowUnfree = true;
}