We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec31ec4 commit 7eda4b8Copy full SHA for 7eda4b8
modules/nixos/base/default.nix
@@ -35,6 +35,12 @@ in {
35
description = "Primary user for permissions and defaults.";
36
};
37
38
+ extraGroups = mkOption {
39
+ type = listOf str;
40
+ default = [ "plugdev" ];
41
+ description = "Extra groups to create.";
42
+ };
43
+
44
tz = mkOption {
45
type = str;
46
default = "America/Vancouver";
@@ -106,6 +112,12 @@ in {
106
112
(python3.withPackages py-pkgs)
107
113
];
108
114
115
+ # extra groups
116
+ users.groups = builtins.listToAttrs (map (name: {
117
+ inherit name;
118
+ value = { };
119
+ }) cfg.extraGroups);
120
109
121
# sops
110
122
sops = let
111
123
isEd25519 = k: k.type == "ed25519";
0 commit comments