From 00ff49b3a84a8cf073ee4a94a145fb81c297fa44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 12 Jun 2021 10:46:14 +0100 Subject: [PATCH] t480 config, more ramswap --- flake.lock | 6 +++--- nixos/boxes/foureighty/hardware-configuration.nix | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index c1cb9ee9..3322638c 100644 --- a/flake.lock +++ b/flake.lock @@ -74,11 +74,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1623489190, - "narHash": "sha256-p+aJJZ2BE57+59FDjHuUzaWow1M+bZ0MZDxqeB2/TKI=", + "lastModified": 1623490714, + "narHash": "sha256-Em9Rf+iTY1mTeFOVCLFGGAoSdcx0ekuxuf45ePjsqnY=", "owner": "cyplo", "repo": "nixos-hardware", - "rev": "1a4ac0b996f2bd5f2fba8b94ea5d7c96d1f6e114", + "rev": "a67ed0c3a2d1b31f8233195cbd36bb2501bdf1bc", "type": "github" }, "original": { diff --git a/nixos/boxes/foureighty/hardware-configuration.nix b/nixos/boxes/foureighty/hardware-configuration.nix index ba014902..4d94d7cc 100644 --- a/nixos/boxes/foureighty/hardware-configuration.nix +++ b/nixos/boxes/foureighty/hardware-configuration.nix @@ -7,7 +7,7 @@ boot = { kernel.sysctl = { - "vm.swappiness" = 75; + "vm.swappiness" = 95; }; kernelModules = [ "kvm-intel" ]; @@ -40,7 +40,7 @@ zramSwap = { enable = true; algorithm = "zstd"; - memoryPercent = 50; + memoryPercent = 75; }; nix.maxJobs = 2;