From b9102b5a440a839a3a0526c1add7b0588d492a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 27 May 2025 21:28:09 +0200 Subject: [PATCH] Add zram for nix-cache --- hosts/nix-cache01/default.nix | 1 + hosts/nix-cache01/zram.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 hosts/nix-cache01/zram.nix diff --git a/hosts/nix-cache01/default.nix b/hosts/nix-cache01/default.nix index d57d450..c9c6e59 100644 --- a/hosts/nix-cache01/default.nix +++ b/hosts/nix-cache01/default.nix @@ -3,5 +3,6 @@ imports = [ ./configuration.nix ../../services/nix-cache + ./zram.nix ]; } diff --git a/hosts/nix-cache01/zram.nix b/hosts/nix-cache01/zram.nix new file mode 100644 index 0000000..1b0509c --- /dev/null +++ b/hosts/nix-cache01/zram.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + zramSwap = { + enable = true; + }; +}