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