2018-01-13 12:41:08 +00:00
|
|
|
{ name, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2024-10-19 05:13:33 +00:00
|
|
|
options = let
|
|
|
|
inherit (lib) mkOption types;
|
|
|
|
in {
|
2018-01-14 12:26:18 +00:00
|
|
|
name = mkOption {
|
|
|
|
type = types.str;
|
2024-10-19 05:13:33 +00:00
|
|
|
default = name;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2018-01-14 12:26:18 +00:00
|
|
|
The group's name. If undefined, the name of the attribute set
|
|
|
|
will be used.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-01-13 12:41:08 +00:00
|
|
|
gid = mkOption {
|
2024-09-05 09:35:57 +00:00
|
|
|
type = types.int;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = "The group's GID.";
|
2018-01-13 12:41:08 +00:00
|
|
|
};
|
|
|
|
|
2018-01-14 12:26:18 +00:00
|
|
|
members = mkOption {
|
2018-07-21 11:27:08 +00:00
|
|
|
type = types.listOf types.str;
|
2018-01-14 12:26:18 +00:00
|
|
|
default = [];
|
2024-04-14 21:02:32 +00:00
|
|
|
description = "The group's members.";
|
2018-01-13 12:41:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
description = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
2024-04-14 21:02:32 +00:00
|
|
|
description = "The group's description.";
|
2018-01-13 12:41:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|