summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = ''