From e671c3fb5c0277abe533c4a02e1f340e7fb8fefc Mon Sep 17 00:00:00 2001 From: notohh Date: Thu, 2 May 2024 03:13:14 -0400 Subject: [PATCH] hardware: enable zram --- hosts/tsuki/hardware.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/tsuki/hardware.nix b/hosts/tsuki/hardware.nix index fa1202a..8468c8d 100755 --- a/hosts/tsuki/hardware.nix +++ b/hosts/tsuki/hardware.nix @@ -41,6 +41,13 @@ fsType = "nfs"; }; }; + + zramSwap = { + enable = true; + swapDevices = 1; + algorithm = "zstd"; + }; + networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";