From 8b3b7f05050c1637bd70636f6ee8a5161a303e0e Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 17 Feb 2021 01:28:48 +0100 Subject: [PATCH] Decrease swap size to half the RAM size --- modules/hardware-configuration.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/hardware-configuration.nix b/modules/hardware-configuration.nix index 12896d8..a54869a 100644 --- a/modules/hardware-configuration.nix +++ b/modules/hardware-configuration.nix @@ -33,13 +33,18 @@ fsType = "autofs"; }; + fileSystems."/home" = + { device = "syscea/stateful/home"; + fsType = "zfs"; + }; + fileSystems."/tmp" = { device = "syscea/ephemeral/tmp"; fsType = "zfs"; }; - fileSystems."/home" = - { device = "syscea/stateful/home"; + fileSystems."/home/coolneng/Downloads" = + { device = "syscea/stateful/home/downloads"; fsType = "zfs"; }; @@ -48,13 +53,8 @@ fsType = "vfat"; }; - fileSystems."/home/coolneng/Downloads" = - { device = "syscea/stateful/home/downloads"; - fsType = "zfs"; - }; - swapDevices = - [ { device = "/dev/disk/by-uuid/205e9060-b3c4-43e3-800f-aa6ebe782fb0"; } + [ { device = "/dev/disk/by-uuid/3403dce5-dfd2-42bc-9b38-58995c3fb93a"; } ]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";