mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added resources limits to prevent PC burning
This commit is contained in:
parent
ecc2d5e948
commit
acea065c71
@ -19,7 +19,19 @@
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Enable Flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Limit resource usage to prevent OOM kill
|
||||
max-jobs = 2;
|
||||
cores = 4;
|
||||
|
||||
# Prevent hanging builds
|
||||
max-silent-time = 3600;
|
||||
tiemout = 1800;
|
||||
};
|
||||
};
|
||||
|
||||
# Enables SDDM
|
||||
services = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user