BIG changes. Make almost every server service modular, to distribute among multiple servers
This commit is contained in:
parent
30fc0dc800
commit
7e40fd4fb3
44 changed files with 153 additions and 143 deletions
15
modules/system/services/server/nginx/user/default.nix
Normal file
15
modules/system/services/server/nginx/user/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
users = lib.mkIf config.services.nginx.enable {
|
||||
users.nginx = {
|
||||
group = "nginx";
|
||||
extraGroups = [
|
||||
"turnserver"
|
||||
"virtualMail"
|
||||
];
|
||||
isSystemUser = true;
|
||||
uid = 60;
|
||||
};
|
||||
groups.nginx = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue