Compare commits

..

5 commits

5 changed files with 37 additions and 4 deletions

View file

@ -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;
};
}

View file

@ -172,6 +172,7 @@
settings = { settings = {
font-size = 12; # sweet spot for framework 13 font-size = 12; # sweet spot for framework 13
command = lib.getExe config.programs.fish.package; command = lib.getExe config.programs.fish.package;
mouse-scroll-multiplier = 1;
}; };
}; };
kitty = { kitty = {

View file

@ -10,4 +10,11 @@
MemoryMax = "90%"; MemoryMax = "90%";
OOMScoreAdjust = 500; OOMScoreAdjust = 500;
}; };
# 16 Cores, 32 GB RAM
# split into 4 jobs with 4C/8G
nix.settings = {
cores = 2;
max-jobs = 4;
};
} }

View file

@ -26,10 +26,10 @@
"flakes" "flakes"
]; ];
allow-import-from-derivation = true; allow-import-from-derivation = true;
keep-outputs = false; # Build time derivations and sources keep-build-log = true;
keep-going = true; # Continue even when some fails
http-connections = 50; # default: 25 keep-outputs = true; # Build time derivations and sources
max-substitution-jobs = 32; # default: 16 warn-dirty = false;
}; };
}; };
} }

View file

@ -8,6 +8,10 @@
package = lib.mkDefault pkgs.nix; package = lib.mkDefault pkgs.nix;
settings = { 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 = [ extra-substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];