summaryrefslogtreecommitdiff
path: root/hosts/glados/boot.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-26 11:45:41 -0500
committerseth <[email protected]>2023-02-26 11:45:41 -0500
commit2922c83bb4ebf7c80599c9479a08dfb3a1d3446b (patch)
treee7deaa1736ecd765f7253627accc7b50f2f9918f /hosts/glados/boot.nix
parent2c181779426b72e48e10f32ad3169513bd6e9a68 (diff)
enable zram + ondemand governor for glados
Diffstat (limited to 'hosts/glados/boot.nix')
-rw-r--r--hosts/glados/boot.nix7
1 files changed, 7 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;