From ee304ba81c824fe0582b38b4359f67933e4197b5 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Wed, 8 Apr 2026 11:29:40 +0200 Subject: [PATCH] better postCreateHook --- modules/hosts/hermes/disko.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hosts/hermes/disko.nix b/modules/hosts/hermes/disko.nix index ab1004e..b446e20 100644 --- a/modules/hosts/hermes/disko.nix +++ b/modules/hosts/hermes/disko.nix @@ -70,7 +70,7 @@ canmount = "noauto"; 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 = {