diff --git a/hosts/vps/configuration.nix b/hosts/vps/configuration.nix index f2fc37e..cc956ef 100644 --- a/hosts/vps/configuration.nix +++ b/hosts/vps/configuration.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, inputs, ... }: @@ -134,16 +135,25 @@ in groups = { deploy = { }; lidarr-reports = { }; + www-data = { }; }; users = { + nginx.extraGroups = [ "www-data" ]; deploy = { isSystemUser = true; group = "deploy"; + home = "/var/lib/deploy"; + createHome = true; + shell = pkgs.bashInteractive; + extraGroups = [ "www-data" ]; openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_deploy.pub ]; }; lidarr-reports = { isSystemUser = true; group = "lidarr-reports"; + home = "/var/lib/lidarr-reports"; + createHome = true; + shell = pkgs.bashInteractive; openssh.authorizedKeys.keyFiles = [ ../../secrets/ssh/ed25519_lidarr-reports.pub ]; }; };