summaryrefslogtreecommitdiff
path: root/modules/users/group.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /modules/users/group.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'modules/users/group.nix')
-rw-r--r--modules/users/group.nix26
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;
-
- };
}