Skip to content

Commit 0a1096a

Browse files
committed
fix(nixos): drop invalid --delete-generations flag from nix.gc.options
`--delete-generations` is a `nix-env` / `nix profile` flag; it's not accepted by `nix-collect-garbage`, which only supports `--delete-old` and `--delete-older-than`. PR #71 passed CI because flake-check only evaluates the systemd unit — it never runs it — but `colmena apply` aborts activation when `nix-gc.service` exits 1 with "unrecognised flag '--delete-generations'". Daily cadence + `--delete-older-than 7d` already covers both problems #71 set out to fix: nixpkgs churn gets swept within 24h, and on servers that finally redeploy after a long idle the previous-current generation becomes eligible for pruning the next day.
1 parent f3ea029 commit 0a1096a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/nixos/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ in
9393
gc = {
9494
automatic = true;
9595
dates = "daily";
96-
options = "--delete-older-than 7d --delete-generations +3";
96+
options = "--delete-older-than 7d";
9797
};
9898
optimise.automatic = true;
9999
};

0 commit comments

Comments
 (0)