nix: add keepNr option to NixOS module
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ic7cca953d1e6a23cfed2d1b4e9d51bc76a6a6964
This commit is contained in:
parent
23a4a8e348
commit
bc075941dd
1 changed files with 7 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
||||||
state = j.state;
|
state = j.state;
|
||||||
branch = j.branch;
|
branch = j.branch;
|
||||||
scheduling_shares = j.schedulingShares;
|
scheduling_shares = j.schedulingShares;
|
||||||
|
keep_nr = j.keepNr;
|
||||||
inputs = map (i:
|
inputs = map (i:
|
||||||
filterAttrs (_: v: v != null) {
|
filterAttrs (_: v: v != null) {
|
||||||
name = i.name;
|
name = i.name;
|
||||||
|
|
@ -173,6 +174,12 @@
|
||||||
description = "Scheduling priority shares. Higher values = more priority.";
|
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 {
|
inputs = mkOption {
|
||||||
type = listOf (submodule {
|
type = listOf (submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue