From 9ebb6123e34f54c7297b1020bd41e68a03fc3172 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 7 Apr 2023 19:52:09 +0530 Subject: [PATCH] setup /tmp --- system/hardware/filesystem.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/hardware/filesystem.nix b/system/hardware/filesystem.nix index f6919a9..18a2afe 100644 --- a/system/hardware/filesystem.nix +++ b/system/hardware/filesystem.nix @@ -1,5 +1,4 @@ { ... }: { - boot.tmpOnTmpfs = true; fileSystems = { "/" = { device = "tmpfs"; @@ -19,6 +18,12 @@ options = [ "subvol=/@persist" "compress-force=zstd" ]; neededForBoot = true; }; + "/tmp" = { + device = "/dev/vg0/system"; + fsType = "btrfs"; + options = [ "subvol=/@tmp" "compress-force=zstd" "nosuid" "nodev" ]; + neededForBoot = true; + }; "/mnt/system" = { device = "/dev/vg0/system"; fsType = "btrfs";