From 8f7f58b9d1ce0a075390b7216eb142efbb36202b Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Fri, 21 Feb 2025 00:52:57 +0100 Subject: [PATCH] write tmp to disk --- hosts/toaster/hardware-configuration.nix | 6 ++++++ hosts/toaster/zfs.nix | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/toaster/hardware-configuration.nix b/hosts/toaster/hardware-configuration.nix index 1b0fbb0..318ff03 100644 --- a/hosts/toaster/hardware-configuration.nix +++ b/hosts/toaster/hardware-configuration.nix @@ -49,6 +49,12 @@ options = [ "zfsutil" ]; }; + fileSystems."/tmp" = { + device = "zpool/nocomp/tmp"; + fsType = "zfs"; + options = [ "zfsutil" ]; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/A170-F83D"; fsType = "vfat"; diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix index 70cc5c9..1970bbf 100644 --- a/hosts/toaster/zfs.nix +++ b/hosts/toaster/zfs.nix @@ -19,6 +19,7 @@ supportedFilesystems = [ "zfs" ]; kernelParams = [ "nohibernate" ]; plymouth.enable = false; - tmp.useTmpfs = true; + tmp.useTmpfs = false; + tmp.cleanOnBoot = true; }; }