From 49b6ee3ae83daec0daf0342eb567a4a5efaa422d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 5 Nov 2023 14:37:21 +0100 Subject: sys/mbp.nix: add /var/tmp submodule systemd must have started creating this as a submodule recently. It was preventing @ from being emptied on boot. --- sys/mbp.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/mbp.nix b/sys/mbp.nix index 0cb8a5160bbd..2570950b2c2d 100644 --- a/sys/mbp.nix +++ b/sys/mbp.nix @@ -18,7 +18,7 @@ boot.initrd.postDeviceCommands = '' mkdir /mnt mount /dev/mapper/root /mnt - for subvol in @ tmp; do + for subvol in var/tmp @ tmp; do btrfs subvolume delete "/mnt/$subvol" btrfs subvolume create "/mnt/$subvol" done @@ -51,6 +51,12 @@ options = [ "subvol=tmp" ]; }; + fileSystems."/var/tmp" = { + device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; + fsType = "btrfs"; + options = [ "subvol=var/tmp" ]; + }; + fileSystems."/home" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; -- cgit 1.4.1