From 8df171890d74b2c0b8e4456d419dd68a9b33d09a Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 1 Sep 2024 15:36:04 +0200 Subject: [PATCH] feat: small adjustements to nix config --- configs/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/common.nix b/configs/common.nix index 550ca27..f55341c 100644 --- a/configs/common.nix +++ b/configs/common.nix @@ -91,6 +91,7 @@ in { nix = { package = pkgs.lix; + channel.enable = false; gc = { automatic = true; @@ -104,10 +105,18 @@ in { u.flake = camasca; }; + # give nix daemon lower priority + daemonCPUSchedPolicy = "batch"; + daemonIOSchedClass = "idle"; + settings = { auto-optimise-store = true; experimental-features = ["nix-command" "flakes"]; trusted-users = ["root" "@wheel"]; + connect-timeout = 5; # fail fast if substituters are not available + builders-use-substitutes = true; + log-lines = 25; + min-free = 512 * 1024 * 1024; # if free space drops under min, gc substituters = [ "https://uku3lig.cachix.org"