mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
Merge pull request #37 from nix-community/zfs
zfs: fix nixos config options
This commit is contained in:
commit
0d3295fcff
1 changed files with 4 additions and 2 deletions
|
|
@ -763,7 +763,8 @@ rec {
|
||||||
(optionalAttrs (!isNull config.mountpoint) {
|
(optionalAttrs (!isNull config.mountpoint) {
|
||||||
fileSystems.${config.mountpoint} = {
|
fileSystems.${config.mountpoint} = {
|
||||||
device = config.name;
|
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") {
|
optionalAttrs (config.zfs_type == "filesystem" && config.options.mountpoint or "" != "none") {
|
||||||
fileSystems.${config.mountpoint} = {
|
fileSystems.${config.mountpoint} = {
|
||||||
device = "${zpool}/${config.name}";
|
device = "${zpool}/${config.name}";
|
||||||
fsType = [ "zfs" ];
|
fsType = "zfs";
|
||||||
|
options = lib.optional ((config.options.mountpoint or "") != "legacy") "zfsutil";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue