Merge pull request 'Add groups to users' (#17) from nixos-21.11-migration into master

Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config/pulls/17
This commit is contained in:
Inex Code 2022-04-26 10:54:43 +03:00
commit 289b715873
4 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,7 @@
isNormalUser = false; isNormalUser = false;
isSystemUser = true; isSystemUser = true;
extraGroups = [ "opendkim" ]; extraGroups = [ "opendkim" ];
group = "selfprivacy-api";
}; };
users.groups."selfprivacy-api" = { users.groups."selfprivacy-api" = {
members = [ "selfprivacy-api" ]; members = [ "selfprivacy-api" ];

View file

@ -24,6 +24,7 @@ in
users.users.restic = { users.users.restic = {
isNormalUser = false; isNormalUser = false;
isSystemUser = true; isSystemUser = true;
group = "restic";
}; };
environment.etc."restic/resticPasswd".text = '' environment.etc."restic/resticPasswd".text = ''
${cfg.resticPassword} ${cfg.resticPassword}

View file

@ -39,5 +39,6 @@ in
extraGroups = [ "postgres" ]; extraGroups = [ "postgres" ];
isNormalUser = false; isNormalUser = false;
isSystemUser = true; isSystemUser = true;
group = "pleroma";
}; };
} }

View file

@ -10,6 +10,7 @@ in
isNormalUser = false; isNormalUser = false;
isSystemUser = true; isSystemUser = true;
extraGroups = [ "ocserv" "acmerecievers" ]; extraGroups = [ "ocserv" "acmerecievers" ];
group = "ocserv";
}; };
services.ocserv = { services.ocserv = {
enable = config.services.userdata.ocserv.enable; enable = config.services.userdata.ocserv.enable;