Skip to content

Commit

Permalink
Merge pull request #941 from LogicalOverflow/master
Browse files Browse the repository at this point in the history
fix eval of `zfs_volume`'s `_unmount` if `content` is `null`
  • Loading branch information
Mic92 authored Jan 16, 2025
2 parents f720e64 + c53bfaa commit bf0abfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions example/zfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
mountpoint = "/ext4onzfs";
};
};
zfs_volume_no_content = {
type = "zfs_volume";
size = "10M";
};
zfs_encryptedvolume = {
type = "zfs_volume";
size = "10M";
Expand Down
2 changes: 1 addition & 1 deletion lib/types/zfs_volume.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
${config.content._unmount.dev or ""}
'';

fs = config.content._unmount.fs;
fs = config.content._unmount.fs or {};
};
};
_config = lib.mkOption {
Expand Down

0 comments on commit bf0abfd

Please sign in to comment.