From bc075941dd4a9680bdce28932be6cfd732674e75 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 18 Feb 2026 11:31:21 +0300 Subject: [PATCH] nix: add `keepNr` option to NixOS module Signed-off-by: NotAShelf Change-Id: Ic7cca953d1e6a23cfed2d1b4e9d51bc76a6a6964 --- nix/modules/nixos.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 = {