Merge pull request #37 from nix-community/zfs

zfs: fix nixos config options
This commit is contained in:
Jörg Thalheim 2022-09-05 16:28:42 +01:00 committed by GitHub
commit 0d3295fcff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
};
};
};