Oops, mounts shouldn't be a list, should be attrs.

This commit is contained in:
niten 2021-10-17 23:16:46 -07:00
parent 56cea847f4
commit 44fcc8e262
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ in {
(fs: opts: { filesystem = fs; opts = opts; })
host-filesystems;
mounts = concatMap
mounts = builtins.listToAttrs (concatMap
(fs: mapAttrsToList
(mp: mp-opts:
nameValuePair "${fs.filesystem}-${mp}-mount" {
@ -25,7 +25,7 @@ in {
requires = [ "${fs.filesystem}-decrypt.service" ];
})
fs.opts.mountpoints)
filesystems;
filesystems);
in mounts;
services = mapAttrs' (filesystem-name: opts:

View File

@ -15,6 +15,8 @@ rec {
type = listOf str;
description = "List of filesystem options specific to this mountpoint (eg: subvol).";
};
# TODO: Access control. Group? List of users?
};
};
in {