diff --git a/nix/modules/nixos.nix b/nix/modules/nixos.nix index 7b22020..f319d86 100644 --- a/nix/modules/nixos.nix +++ b/nix/modules/nixos.nix @@ -33,6 +33,7 @@ state = j.state; branch = j.branch; scheduling_shares = j.schedulingShares; + keep_nr = j.keepNr; inputs = map (i: filterAttrs (_: v: v != null) { name = i.name; @@ -173,6 +174,12 @@ description = "Scheduling priority shares. Higher values = more priority."; }; + keepNr = mkOption { + type = int; + default = 3; + description = "Number of recent successful evaluations to retain for GC pinning."; + }; + inputs = mkOption { type = listOf (submodule { options = {