From 5e74b57b7b85c14f4a507a6d91aa2b63007e1ecd Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 11 Dec 2023 11:25:58 +0100 Subject: [PATCH] nix(t14,loki): enable zram --- nix/hosts/loki/configuration.nix | 1 + nix/hosts/t14/configuration.nix | 1 + nix/modules/zram.nix | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 nix/modules/zram.nix diff --git a/nix/hosts/loki/configuration.nix b/nix/hosts/loki/configuration.nix index b9e0fc1..bcb53d6 100644 --- a/nix/hosts/loki/configuration.nix +++ b/nix/hosts/loki/configuration.nix @@ -22,6 +22,7 @@ ../../modules/base.nix ../../modules/dnscrypt.nix ../../modules/uptime-kuma.nix + ../../modules/zram.nix ]; sops = { diff --git a/nix/hosts/t14/configuration.nix b/nix/hosts/t14/configuration.nix index 99aa612..45e7b36 100644 --- a/nix/hosts/t14/configuration.nix +++ b/nix/hosts/t14/configuration.nix @@ -13,6 +13,7 @@ ../../modules/base.nix ../../modules/dnscrypt.nix + ../../modules/zram.nix ]; sops = { diff --git a/nix/modules/zram.nix b/nix/modules/zram.nix new file mode 100644 index 0000000..933126e --- /dev/null +++ b/nix/modules/zram.nix @@ -0,0 +1,8 @@ +{ + config, + lib, + pkgs, + ... +}: { + zramSwap.enable = true; +}