summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-07-28 16:09:18 +0530
committersinanmohd <sinan@sinanmohd.com>2025-07-28 16:09:18 +0530
commit41fc33e6b40c524fdd5ccc1c089165d891b753dd (patch)
tree55b3567175777c0cf7c476693cf626cb764f1764
parent1a6ecbf3b9ffe9e5ff13fa2ecf94a6f78bd396dd (diff)
os: alway clean /tmp on boot & enable zram
-rw-r--r--os/common/configuration.nix2
1 files changed, 2 insertions, 0 deletions
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 = ''