nix: add keepNr option to NixOS module

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic7cca953d1e6a23cfed2d1b4e9d51bc76a6a6964
This commit is contained in:
raf 2026-02-18 11:31:21 +03:00
commit bc075941dd
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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 = {