From fa5db12d76f9e8ee11e572cdbe021230e48b6afa Mon Sep 17 00:00:00 2001 From: misumisumi Date: Wed, 10 Jan 2024 21:59:03 +0900 Subject: [PATCH] zfs: Tolerate no mountable dataset --- lib/types/zpool.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/zpool.nix b/lib/types/zpool.nix index bcb9a24..451956c 100644 --- a/lib/types/zpool.nix +++ b/lib/types/zpool.nix @@ -85,7 +85,7 @@ zpool import -l -R ${rootMountPoint} '${config.name}' ${lib.concatMapStrings (x: x.dev or "") (lib.attrValues datasetMounts)} ''; - inherit (datasetMounts) fs; + fs = datasetMounts.fs or { }; }; }; _config = lib.mkOption {