better postCreateHook

This commit is contained in:
2026-04-08 11:29:40 +02:00
parent 294cfaacc3
commit ee304ba81c
+1 -1
View File
@@ -70,7 +70,7 @@
canmount = "noauto"; canmount = "noauto";
mountpoint = "legacy"; mountpoint = "legacy";
}; };
postCreateHook = "zfs snapshot rpool/root/nixos@blank"; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";
}; };
home = { home = {