From 41fc33e6b40c524fdd5ccc1c089165d891b753dd Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 28 Jul 2025 16:09:18 +0530 Subject: os: alway clean /tmp on boot & enable zram --- os/common/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/common/configuration.nix b/os/common/configuration.nix index d8d465e..0b78187 100644 --- a/os/common/configuration.nix +++ b/os/common/configuration.nix @@ -28,6 +28,7 @@ in hostName = lib.mkOptionDefault "common"; }; + zramSwap.enable = true; swapDevices = lib.mkDefault [ { device = "/swapfile"; @@ -51,6 +52,7 @@ in boot = { loader.timeout = 1; initrd.systemd.enable = true; + tmp.cleanOnBoot = true; }; programs.bash.promptInit = '' -- cgit v1.2.3