global(zfs): split setup depend on secret mountpoint

This commit is contained in:
514fpv 2024-10-26 01:02:09 +08:00
parent f450e2d3f3
commit 2de0920645
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0

View file

@ -31,5 +31,5 @@ in mkIf cfg.enable {
}; };
# import system state pool after encrypted filesystems become available for key loading # import system state pool after encrypted filesystems become available for key loading
boot.initrd.systemd.services."zfs-import-${config.global.fs.store}".after = [ "cryptsetup.target" ]; boot.initrd.systemd.services."zfs-import-${config.global.fs.store}".after = [ "sysroot-nix-var-secret.mount" "cryptsetup.target" ];
} }