1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-15 13:07:45 +00:00
nix-darwin/modules/users/group.nix

39 lines
637 B
Nix
Raw Normal View History

{ name, lib, ... }:
with lib;
{
options = {
name = mkOption {
type = types.str;
2024-04-14 23:02:32 +02:00
description = ''
The group's name. If undefined, the name of the attribute set
will be used.
'';
};
gid = mkOption {
type = types.int;
2024-04-14 23:02:32 +02:00
description = "The group's GID.";
};
members = mkOption {
type = types.listOf types.str;
default = [];
2024-04-14 23:02:32 +02:00
description = "The group's members.";
};
description = mkOption {
type = types.str;
default = "";
2024-04-14 23:02:32 +02:00
description = "The group's description.";
};
};
config = {
name = mkDefault name;
};
}