diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-16 22:22:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-16 22:22:34 +0100 |
| commit | 8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch) | |
| tree | c5059edcbebd9644290cad7c653c49a36d593021 /modules/users/group.nix | |
| parent | 6bd39d420578aacf7c0bab7de3e7027b952115ae (diff) | |
| parent | bd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff) | |
Diffstat (limited to 'modules/users/group.nix')
| -rw-r--r-- | modules/users/group.nix | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/modules/users/group.nix b/modules/users/group.nix index cfda76f..da3feb1 100644 --- a/modules/users/group.nix +++ b/modules/users/group.nix @@ -1,41 +1,33 @@ { name, lib, ... }: -with lib; - { - options = { + options = let + inherit (lib) mkOption types; + in { name = mkOption { type = types.str; - description = lib.mdDoc '' + default = name; + 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 = lib.mdDoc "The group's GID."; + type = types.int; + description = "The group's GID."; }; members = mkOption { type = types.listOf types.str; default = []; - description = lib.mdDoc "The group's members."; + description = "The group's members."; }; description = mkOption { type = types.str; default = ""; - description = lib.mdDoc "The group's description."; + description = "The group's description."; }; }; - - config = { - - name = mkDefault name; - - }; } |
