Oops, mounts shouldn't be a list, should be attrs.
This commit is contained in:
parent
56cea847f4
commit
44fcc8e262
@ -12,7 +12,7 @@ in {
|
|||||||
(fs: opts: { filesystem = fs; opts = opts; })
|
(fs: opts: { filesystem = fs; opts = opts; })
|
||||||
host-filesystems;
|
host-filesystems;
|
||||||
|
|
||||||
mounts = concatMap
|
mounts = builtins.listToAttrs (concatMap
|
||||||
(fs: mapAttrsToList
|
(fs: mapAttrsToList
|
||||||
(mp: mp-opts:
|
(mp: mp-opts:
|
||||||
nameValuePair "${fs.filesystem}-${mp}-mount" {
|
nameValuePair "${fs.filesystem}-${mp}-mount" {
|
||||||
@ -25,7 +25,7 @@ in {
|
|||||||
requires = [ "${fs.filesystem}-decrypt.service" ];
|
requires = [ "${fs.filesystem}-decrypt.service" ];
|
||||||
})
|
})
|
||||||
fs.opts.mountpoints)
|
fs.opts.mountpoints)
|
||||||
filesystems;
|
filesystems);
|
||||||
in mounts;
|
in mounts;
|
||||||
|
|
||||||
services = mapAttrs' (filesystem-name: opts:
|
services = mapAttrs' (filesystem-name: opts:
|
||||||
|
@ -15,6 +15,8 @@ rec {
|
|||||||
type = listOf str;
|
type = listOf str;
|
||||||
description = "List of filesystem options specific to this mountpoint (eg: subvol).";
|
description = "List of filesystem options specific to this mountpoint (eg: subvol).";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: Access control. Group? List of users?
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user