about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sys/mbp.nix20
1 files changed, 17 insertions, 3 deletions
diff --git a/sys/mbp.nix b/sys/mbp.nix
index 1c595142c65a..202933a9553d 100644
--- a/sys/mbp.nix
+++ b/sys/mbp.nix
@@ -16,8 +16,10 @@
   boot.initrd.postDeviceCommands = ''
     mkdir /mnt
     mount /dev/mapper/root /mnt
-    btrfs subvolume delete /mnt/boot
-    btrfs subvolume create /mnt/boot
+    for subvol in @ tmp; do
+        btrfs subvolume delete "/mnt/$subvol"
+        btrfs subvolume create "/mnt/$subvol"
+    done
     umount /mnt
   '';
 
@@ -38,7 +40,13 @@
   fileSystems."/" = {
     device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926";
     fsType = "btrfs";
-    options = [ "subvol=boot" ];
+    options = [ "subvol=@" ];
+  };
+
+  fileSystems."/tmp" = {
+    device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926";
+    fsType = "btrfs";
+    options = [ "subvol=tmp" ];
   };
 
   fileSystems."/home" = {
@@ -77,6 +85,12 @@
     options = [ "subvol=persist/safe/var/lib/machines" ];
   };
 
+  fileSystems."/var/lib/portables" = {
+    device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926";
+    fsType = "btrfs";
+    options = [ "subvol=persist/safe/var/lib/portables" ];
+  };
+
   networking.hostName = "mbp";
 
   users.users.qyliss.hashedPassword = "$y$j9T$qdvgrHPyvZpqjUQXuagxD1$dq5yygUTVhVqpgG9.zWaihmtED437Cl.fllqJBEWSo4";