From fd27e13ef27640cc89eda53fdb0ca0380f5ab1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 4 Jan 2026 22:14:25 +0100 Subject: [PATCH 1/5] nixos/system-nixconf: include best-effort {min,max}-free by default --- nix/nixosModules/common/system-nixconf.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixosModules/common/system-nixconf.nix b/nix/nixosModules/common/system-nixconf.nix index 9a0d8783..fdfb8d20 100644 --- a/nix/nixosModules/common/system-nixconf.nix +++ b/nix/nixosModules/common/system-nixconf.nix @@ -8,6 +8,10 @@ package = lib.mkDefault pkgs.nix; settings = { + # Try to have at least 10GB of space by default + min-free = lib.mkDefault (5 * 1024 * 1024 * 1024); + max-free = lib.mkDefault (10 * 1024 * 1024 * 1024); + extra-substituters = [ "https://nix-community.cachix.org" ]; From 717397d6fd1b2e55cfc16d1fe685dc03ed5ec8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 5 Jan 2026 08:26:35 +0100 Subject: [PATCH 2/5] home/user-nixconf: update and remove cppnix option --- nix/homeModules/common/user-nixconf.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/homeModules/common/user-nixconf.nix b/nix/homeModules/common/user-nixconf.nix index 9ca3a09e..5b22060b 100644 --- a/nix/homeModules/common/user-nixconf.nix +++ b/nix/homeModules/common/user-nixconf.nix @@ -26,10 +26,10 @@ "flakes" ]; allow-import-from-derivation = true; - keep-outputs = false; # Build time derivations and sources - - http-connections = 50; # default: 25 - max-substitution-jobs = 32; # default: 16 + keep-build-log = true; + keep-going = true; # Continue even when some fails + keep-outputs = true; # Build time derivations and sources + warn-dirty = false; }; }; } From 46983687c0439bb76d5b05aa2c6cef7f08717488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 5 Jan 2026 08:41:20 +0100 Subject: [PATCH 3/5] vanadium/sane-nix: paralell build --- nix/configurations/vanadium/nixos/sane-nix.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/configurations/vanadium/nixos/sane-nix.nix b/nix/configurations/vanadium/nixos/sane-nix.nix index 83c080d8..83088437 100644 --- a/nix/configurations/vanadium/nixos/sane-nix.nix +++ b/nix/configurations/vanadium/nixos/sane-nix.nix @@ -10,4 +10,11 @@ MemoryMax = "90%"; OOMScoreAdjust = 500; }; + + # 16 Cores, 32 GB RAM + # split into 4 jobs with 4C/8G + nix.settings = { + cores = 2; + max-jobs = 4; + }; } From 317e43e9a055f46c9f49c8e36c3839e5d4c8132f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 5 Jan 2026 08:44:23 +0100 Subject: [PATCH 4/5] hetzner_benchmark/sane-nix: init storage and memory protection --- .../hetzner_benchmark/nixos/sane-nix.nix | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nix/configurations/hetzner_benchmark/nixos/sane-nix.nix diff --git a/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix b/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix new file mode 100644 index 00000000..dc4e2f13 --- /dev/null +++ b/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix @@ -0,0 +1,21 @@ +# Protect my system from running out of storage or memory +{ + # 500GB Storage + nix.settings = { + min-free = 20 * 1024 * 1024 * 1024; + max-free = 50 * 1024 * 1024 * 1024; + }; + + systemd.services.nix-daemon.serviceConfig = { + MemoryAccounting = true; + MemoryMax = "90%"; + OOMScoreAdjust = 500; + }; + + # 12 Cores, 64 GB RAM + # split into 4 jobs with 3C/16G + nix.settings = { + cores = 3; + max-jobs = 4; + }; +} From bf06325b6ef1cd9e16452c5b2c70b72ef3376cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 5 Jan 2026 09:02:59 +0100 Subject: [PATCH 5/5] vanadium/ghostty: reduce scroll speed --- nix/configurations/vanadium/home/programs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index 19b98659..46351801 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -172,6 +172,7 @@ settings = { font-size = 12; # sweet spot for framework 13 command = lib.getExe config.programs.fish.package; + mouse-scroll-multiplier = 1; }; }; kitty = {