mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
36 lines
577 B
Nix
36 lines
577 B
Nix
|
{ name, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
gid = mkOption {
|
||
|
type = mkOptionType {
|
||
|
name = "gid";
|
||
|
check = t: isInt t && t > 501;
|
||
|
};
|
||
|
description = "The group's GID.";
|
||
|
};
|
||
|
|
||
|
name = mkOption {
|
||
|
type = types.str;
|
||
|
description = ''
|
||
|
The group's name. If undefined, the name of the attribute set
|
||
|
will be used.
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
description = mkOption {
|
||
|
type = types.str;
|
||
|
default = "";
|
||
|
description = "The group's description.";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = {
|
||
|
|
||
|
name = mkDefault name;
|
||
|
|
||
|
};
|
||
|
}
|