From ae3ac92431a5d0614e961043643bfc852ee09d41 Mon Sep 17 00:00:00 2001 From: vroad <396351+vroad@users.noreply.github.com> Date: Thu, 31 Mar 2022 10:44:20 +0900 Subject: [PATCH] Remove swappiness config --- common/pc/hdd/default.nix | 6 +----- common/pc/ssd/default.nix | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/common/pc/hdd/default.nix b/common/pc/hdd/default.nix index 8cc5ada..869badb 100644 --- a/common/pc/hdd/default.nix +++ b/common/pc/hdd/default.nix @@ -1,7 +1,3 @@ { lib, ... }: -{ - boot.kernel.sysctl = { - "vm.swappiness" = lib.mkDefault 10; - }; -} +{} diff --git a/common/pc/ssd/default.nix b/common/pc/ssd/default.nix index 00922e6..c29d03b 100644 --- a/common/pc/ssd/default.nix +++ b/common/pc/ssd/default.nix @@ -1,9 +1,5 @@ { lib, ... }: { - boot.kernel.sysctl = { - "vm.swappiness" = lib.mkDefault 1; - }; - services.fstrim.enable = lib.mkDefault true; }