mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
fa3f67966b
These options unintentionally used the deprecated string type, the important difference between these is the fact that string merges by default (similar to eg. lines) while str can only have a single value.
41 lines
711 B
Nix
41 lines
711 B
Nix
{ name, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options = {
|
|
name = mkOption {
|
|
type = types.str;
|
|
description = ''
|
|
The group's name. If undefined, the name of the attribute set
|
|
will be used.
|
|
'';
|
|
};
|
|
|
|
gid = mkOption {
|
|
type = mkOptionType {
|
|
name = "gid";
|
|
check = t: isInt t && t > 501;
|
|
};
|
|
description = "The group's GID.";
|
|
};
|
|
|
|
members = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [];
|
|
description = "The group's members.";
|
|
};
|
|
|
|
description = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "The group's description.";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
|
|
name = mkDefault name;
|
|
|
|
};
|
|
}
|