mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 22:49:41 +00:00
Compare commits
5 commits
904c554f77
...
bf06325b6e
| Author | SHA1 | Date | |
|---|---|---|---|
| bf06325b6e | |||
| 317e43e9a0 | |||
| 46983687c0 | |||
| 717397d6fd | |||
| fd27e13ef2 |
5 changed files with 37 additions and 4 deletions
21
nix/configurations/hetzner_benchmark/nixos/sane-nix.nix
Normal file
21
nix/configurations/hetzner_benchmark/nixos/sane-nix.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue