diff options
| author | polwex <polwex@sortug.com> | 2025-10-20 09:08:14 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-20 09:08:14 +0700 |
| commit | 4bb8dd864cf5077018327d6f55058b87def03d45 (patch) | |
| tree | 9de20852c41f2dc1582a622b1d2b9aff8e63af30 /hosts/local | |
| parent | dbf3c03bd7a285d2bf3530679539f33f5c83d477 (diff) | |
no moar hanging
Diffstat (limited to 'hosts/local')
| -rw-r--r-- | hosts/local/gui.nix | 3 | ||||
| -rw-r--r-- | hosts/local/master/configuration.nix | 21 | ||||
| -rw-r--r-- | hosts/local/nvidia.nix | 7 |
3 files changed, 28 insertions, 3 deletions
diff --git a/hosts/local/gui.nix b/hosts/local/gui.nix index b22f5bc..59676c1 100644 --- a/hosts/local/gui.nix +++ b/hosts/local/gui.nix @@ -51,5 +51,8 @@ signal-desktop telegram-desktop electrum + # xdg whatever bs + glib # gio + desktop-file-utils ]; } diff --git a/hosts/local/master/configuration.nix b/hosts/local/master/configuration.nix index 7b883d3..cad65c8 100644 --- a/hosts/local/master/configuration.nix +++ b/hosts/local/master/configuration.nix @@ -13,8 +13,8 @@ in { ../../linux.nix ../../unfree.nix #../../android.nix - # ../gui.nix - # ../i3.nix + ../gui.nix + ../i3.nix # ../gnome.nix # ../wayland.nix ../nvidia.nix @@ -56,7 +56,8 @@ in { zramSwap = { enable = true; - # algorithm = "zstd"; + memoryPercent = 100; + algorithm = "zstd"; # memoryPercent = 30; }; @@ -114,4 +115,18 @@ in { # }; # }; # }; + # stop fucking crashing + + systemd.services.nix-daemon.serviceConfig = { + MemoryHigh = "22G"; # throttle above this + MemoryMax = "28G"; # hard kill above this + # optional niceties: + CPUWeight = 50; + IOWeight = 50; + TasksMax = 4096; + # Let systemd-oomd preferentially kill these if needed: + ManagedOOMMemoryPressure = "kill"; + ManagedOOMMemoryPressureLimit = "50%"; + }; + systemd.oomd.enable = true; } diff --git a/hosts/local/nvidia.nix b/hosts/local/nvidia.nix index 3d6f603..b8b335a 100644 --- a/hosts/local/nvidia.nix +++ b/hosts/local/nvidia.nix @@ -28,10 +28,17 @@ in { nix.settings.substituters = [ "https://cuda-maintainers.cachix.org" "https://nix-community.cachix.org" + "https://huggingface.cachix.org" + + "https://nix-ai-stuff.cachix.org" + "https://ai.cachix.org" ]; nix.settings.trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" + "huggingface.cachix.org-1:ynTPbLS0W8ofXd9fDjk1KvoFky9K2jhxe6r4nXAkc/o=" + "nix-ai-stuff.cachix.org-1:WlUGeVCs26w9xF0/rjyg32PujDqbVMlSHufpj1fqix8=" + "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc=" ]; services.xserver = { |
