mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-04 07:59:40 +00:00
Compare commits
No commits in common. "bf06325b6ef1cd9e16452c5b2c70b72ef3376cca" and "904c554f77a87b65c05dc1e1c6ab077de5ecff1d" have entirely different histories.
bf06325b6e
...
904c554f77
5 changed files with 4 additions and 37 deletions
|
|
@ -1,21 +0,0 @@
|
||||||
# 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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -172,7 +172,6 @@
|
||||||
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 = {
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,4 @@
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,10 @@
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
allow-import-from-derivation = true;
|
allow-import-from-derivation = true;
|
||||||
keep-build-log = true;
|
keep-outputs = false; # Build time derivations and sources
|
||||||
keep-going = true; # Continue even when some fails
|
|
||||||
keep-outputs = true; # Build time derivations and sources
|
http-connections = 50; # default: 25
|
||||||
warn-dirty = false;
|
max-substitution-jobs = 32; # default: 16
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@
|
||||||
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"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue