From 9907a4ba9e08f3354bba4741243758231c59b146 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Fri, 10 Jan 2025 22:26:11 +0100 Subject: [PATCH] builder: disable daily gc, increase automatic gc thresholds --- systems/x86_64-linux/builder/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/systems/x86_64-linux/builder/default.nix b/systems/x86_64-linux/builder/default.nix index bfa780f..14f922f 100644 --- a/systems/x86_64-linux/builder/default.nix +++ b/systems/x86_64-linux/builder/default.nix @@ -70,17 +70,17 @@ nix.optimise.automatic = true; nix.optimise.dates = [ "03:15" ]; - nix.gc.automatic = true; - nix.gc.dates = "daily"; - nix.gc.options = "--delete-old"; + # nix.gc.automatic = true; + # nix.gc.dates = "daily"; + # nix.gc.options = "--delete-old"; # nix.settings.keep-derivations = false; # nix.settings.keep-outputs = true; - # Garbage collect up to 30 GiB when only 6 GiB storage left + # Garbage collect up to 100 GiB when only 20 GiB storage left nix.extraOptions = '' - min-free = ${toString (6 * 1024 * 1024 * 1024)} - max-free = ${toString (30 * 1024 * 1024 * 1024)} + min-free = ${toString (20 * 1024 * 1024 * 1024)} + max-free = ${toString (100 * 1024 * 1024 * 1024)} ''; environment.systemPackages = with pkgs; [ @@ -132,6 +132,7 @@ ]; users.users."nix".openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFjSZYdoF/51F+ykcBAYVCzCPTF5EEigWBL1APiR0h+H julian@aspi" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAIQ+qMuXvyoxO1DuCR3/x+IQRfSA2WyMuzuotWZjCye root@aspi" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHnfLJnS2SKUs47J0qpLTkk0LQA5quOuAhnxE6yppUDm root@kardorf" ];