summaryrefslogtreecommitdiff
path: root/hosts/glados
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/glados')
-rw-r--r--hosts/glados/boot.nix7
-rw-r--r--hosts/glados/default.nix9
2 files changed, 16 insertions, 0 deletions
diff --git a/hosts/glados/boot.nix b/hosts/glados/boot.nix
index 6ff35ba..8e00b5a 100644
--- a/hosts/glados/boot.nix
+++ b/hosts/glados/boot.nix
@@ -16,6 +16,13 @@ in {
boot = {
kernelPackages = pinned-kernel.pkgs.linuxPackages_6_1;
+ kernel.sysctl = {
+ "vm.swappiness" = 100;
+ "vm.vfs_cache_pressure" = 500;
+ "vm.dirty_background_ratio" = 1;
+ "vm.dirty_ratio" = 50;
+ };
+
bootspec.enable = true;
loader.systemd-boot.enable = lib.mkForce false;
diff --git a/hosts/glados/default.nix b/hosts/glados/default.nix
index c1f9887..a6bc4ae 100644
--- a/hosts/glados/default.nix
+++ b/hosts/glados/default.nix
@@ -8,4 +8,13 @@ _: {
./network.nix
./services.nix
];
+
+ powerManagement.cpuFreqGovernor = "ondemand";
+
+ zramSwap = {
+ enable = true;
+ algorithm = "zstd";
+ swapDevices = 1;
+ memoryPercent = 50;
+ };
}