diff --git a/example/zfs.nix b/example/zfs.nix index 5ec99b4..0a42799 100644 --- a/example/zfs.nix +++ b/example/zfs.nix @@ -81,6 +81,10 @@ mountpoint = "/ext4onzfs"; }; }; + zfs_volume_no_content = { + type = "zfs_volume"; + size = "10M"; + }; zfs_encryptedvolume = { type = "zfs_volume"; size = "10M"; diff --git a/lib/types/zfs_volume.nix b/lib/types/zfs_volume.nix index e4c1e90..cc76066 100644 --- a/lib/types/zfs_volume.nix +++ b/lib/types/zfs_volume.nix @@ -88,7 +88,7 @@ ${config.content._unmount.dev or ""} ''; - fs = config.content._unmount.fs; + fs = config.content._unmount.fs or {}; }; }; _config = lib.mkOption {