We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df4651d commit 7bb2feaCopy full SHA for 7bb2fea
1 file changed
environments/modules/users.nix
@@ -2,9 +2,25 @@
2
3
{
4
pkgs,
5
+ lib,
6
...
7
}:
8
9
+ imports = [
10
+ {
11
+ # Add nixbld users
12
+ users.users = lib.pipe (lib.range 1 32) [
13
+ (map (i: {
14
+ name = "nixbld${toString i}";
15
+ value = {
16
+ uid = 30000 + i;
17
+ gid = 30000;
18
+ };
19
+ }))
20
+ lib.listToAttrs
21
+ ];
22
+ }
23
24
config = {
25
users = {
26
enable = true;
@@ -19,10 +35,12 @@
35
};
36
groups.nix.gid = 1000;
37
groups.nixbld.gid = 30000;
- users.sshd = {
- uid = 993;
- gid = 992;
- comment = "SSH privilege separation user";
38
+ users = {
39
+ sshd = {
40
+ uid = 993;
41
+ gid = 992;
42
+ comment = "SSH privilege separation user";
43
44
27
45
groups.sshd.gid = 992;
28
46
0 commit comments