Create groups for encrypted filesystems

This commit is contained in:
2021-10-18 07:19:13 -07:00
parent cbf87fe8cf
commit eef580d596
2 changed files with 32 additions and 4 deletions
+15 -1
View File
@@ -16,7 +16,21 @@ rec {
description = "List of filesystem options specific to this mountpoint (eg: subvol).";
};
# TODO: Access control. Group? List of users?
group = mkOption {
type = nullOr str;
description = "Group to which the mountpoint should belong.";
default = null;
};
users = mkOption {
type = listOf str;
description = ''
List of users who should have access to the filesystem.
Requires a group to be set.
'';
default = [ ];
};
};
};
in {