create www-data
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -134,16 +135,25 @@ in
|
|||||||
groups = {
|
groups = {
|
||||||
deploy = { };
|
deploy = { };
|
||||||
lidarr-reports = { };
|
lidarr-reports = { };
|
||||||
|
www-data = { };
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
|
nginx.extraGroups = [ "www-data" ];
|
||||||
deploy = {
|
deploy = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "deploy";
|
group = "deploy";
|
||||||
|
home = "/var/lib/deploy";
|
||||||
|
createHome = true;
|
||||||
|
shell = pkgs.bashInteractive;
|
||||||
|
extraGroups = [ "www-data" ];
|
||||||
openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_deploy.pub ];
|
openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_deploy.pub ];
|
||||||
};
|
};
|
||||||
lidarr-reports = {
|
lidarr-reports = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "lidarr-reports";
|
group = "lidarr-reports";
|
||||||
|
home = "/var/lib/lidarr-reports";
|
||||||
|
createHome = true;
|
||||||
|
shell = pkgs.bashInteractive;
|
||||||
openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_lidarr-reports.pub ];
|
openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_lidarr-reports.pub ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user