commit c632fbf8d126b149f72f0860ba58db264a25a699
parent 91385f6d4fcae9ac116602db54e77ee51c12f04a
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 7 Mar 2025 22:49:29 +0100
parent 91385f6d4fcae9ac116602db54e77ee51c12f04a
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 7 Mar 2025 22:49:29 +0100
configurations/nixos/default: try to keep at least 1GB of disk-space free (nix.settings)
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configurations/nixos/default.nix b/configurations/nixos/default.nix @@ -50,7 +50,13 @@ in { nix = { channel.enable = false; - settings.auto-optimise-store = true; + settings = { + auto-optimise-store = true; + + # Free up to 1GiB whenever there is less than 100MiB left. + min-free = toString (100 * 1024 * 1024); + max-free = toString (1024 * 1024 * 1024); + }; daemonCPUSchedPolicy = lib.mkDefault "idle"; daemonIOSchedClass = lib.mkDefault "idle";