2018-01-13 12:41:08 +00:00
|
|
|
{ name, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2018-01-14 12:26:18 +00:00
|
|
|
name = mkOption {
|
|
|
|
type = types.str;
|
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 {
|
|
|
|
type = mkOptionType {
|
|
|
|
name = "gid";
|
|
|
|
check = t: isInt t && t > 501;
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
|
|
|
name = mkDefault name;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|