shack: set groups for created users

demanded by 21.11 to set the group
This commit is contained in:
makefu 2021-12-04 20:04:25 +01:00
parent da6d3992cf
commit 2d3a292ea0
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
6 changed files with 12 additions and 0 deletions

View File

@ -15,7 +15,9 @@ in {
inherit home;
isSystemUser = true;
createHome = true;
group = "muell_mail";
};
users.groups.muell_mail = {};
systemd.services.muell_mail = {
description = "muell_mail";
wantedBy = [ "multi-user.target" ];

View File

@ -16,7 +16,9 @@ in {
inherit home;
isSystemUser = true;
createHome = true;
group = "muellshack";
};
users.groups.muellshack = {};
services.nginx.virtualHosts."muell.shack" = {
locations."/" = {
proxyPass = "http://localhost:${port}/muellshack/";

View File

@ -17,7 +17,9 @@ in {
inherit home;
isSystemUser = true;
createHome = true;
group = "node-light";
};
users.groups.node-light = {};
services.nginx.virtualHosts."lounge.light.shack" = {
locations."/" = {
proxyPass = "http://localhost:${port}/lounge/";

View File

@ -19,7 +19,9 @@ in {
users.users.powermeter = {
extraGroups = [ "dialout" ];
isSystemUser = true;
group = "powermeter";
};
users.groups.powermeter = {};
# we make sure that usb-ttl has the correct permissions
# creates /dev/powerraw

View File

@ -16,7 +16,9 @@ in {
inherit home;
createHome = true;
isSystemUser = true;
group = "s3_power";
};
users.groups.shackDNS = {};
systemd.services.s3-power = {
startAt = "daily";
description = "s3-power";

View File

@ -30,9 +30,11 @@ in {
users.users.shackDNS = {
inherit home;
group = "nogroup";
createHome = true;
isSystemUser = true;
};
users.groups.shackDNS = {};
services.nginx.virtualHosts."leases.shack" = {
locations."/" = {
proxyPass = "http://localhost:${port}/";