diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-09-05 16:28:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 16:28:42 +0100 |
commit | 0d3295fcffd67af667296ca20b306dd306a9bd28 (patch) | |
tree | 8cef60bce3637f17a1d926f08587bfb5a13c3564 | |
parent | 0c05616aa2f80ce24f5cbf87202759f2df693c80 (diff) | |
parent | 088b2a31d0a5fa5a6468737977cad8e60b42e24e (diff) |
Merge pull request #37 from nix-community/zfs
zfs: fix nixos config options
-rw-r--r-- | types.nix | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -763,7 +763,8 @@ rec { (optionalAttrs (!isNull config.mountpoint) { fileSystems.${config.mountpoint} = { device = config.name; - fsType = [ "zfs" ]; + fsType = "zfs"; + options = lib.optional ((config.options.mountpoint or "") != "legacy") "zfsutil"; }; }); }; @@ -851,7 +852,8 @@ rec { optionalAttrs (config.zfs_type == "filesystem" && config.options.mountpoint or "" != "none") { fileSystems.${config.mountpoint} = { device = "${zpool}/${config.name}"; - fsType = [ "zfs" ]; + fsType = "zfs"; + options = lib.optional ((config.options.mountpoint or "") != "legacy") "zfsutil"; }; }; }; |