post(nixos): user must be assigned to a group

- otherwise the home folder will be created/assigned with "nogroup" group
This commit is contained in:
Ming Di Leom 2021-06-15 10:49:03 +00:00
parent 1e1223de2d
commit 7c0d28e988
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 7 additions and 0 deletions

View File

@ -182,11 +182,13 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
home = "/var/lib/caddyProxy";
createHome = true;
isSystemUser = true;
group = "caddyProxy";
};
caddyTor = {
home = "/var/lib/caddyTor";
createHome = true;
isSystemUser = true;
group = "caddyTor";
};
};

View File

@ -103,11 +103,13 @@ Combining with the previous user configs, I ended up with:
home = "/var/lib/caddyProxy";
createHome = true;
isSystemUser = true;
group = "caddyProxy";
};
caddyTor = {
home = "/var/lib/caddyTor";
createHome = true;
isSystemUser = true;
group = "caddyTor";
};
tor = {
home = "/var/lib/tor";
@ -524,16 +526,19 @@ Since [unattended upgrade](#Unattended-upgrade) is executed on 00:00, I delay ga
home = "/var/lib/caddyProxy";
createHome = true;
isSystemUser = true;
group = "caddyProxy";
};
caddyTor = {
home = "/var/lib/caddyTor";
createHome = true;
isSystemUser = true;
group = "caddyTor";
};
caddyI2p = {
home = "/var/lib/caddyI2p";
createHome = true;
isSystemUser = true;
group = "caddyI2p";
};
};