NixOS-Config/nixos/server/package-configs/ombi/default.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-01-04 14:49:45 +01:00
{
config,
pkgs,
...
}: {
users.users = {
2024-01-04 19:24:58 +01:00
ombi.extraGroups = ["radarr" "sonarr" "aria2" "nextcloud"];
2024-01-04 14:49:45 +01:00
};
services.ombi = {
2024-02-09 21:53:50 +01:00
enable = true;
2024-01-04 14:49:45 +01:00
port = 2368;
};
users.users = {
2024-01-04 15:46:25 +01:00
radarr.extraGroups = ["aria2" "nextcloud"];
sonarr.extraGroups = ["aria2" "nextcloud"];
2024-01-04 14:49:45 +01:00
};
2024-01-04 19:24:58 +01:00
services = {
#uses port 7878
radarr.enable = true;
#uses port 8989
sonarr.enable = true;
prowlarr.enable = true;
2024-01-04 14:49:45 +01:00
};
services.nginx = {
virtualHosts = {
"ombi.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:2368";
};
};
"radarr.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:7878";
};
};
"sonarr.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8989";
};
};
"prowlarr.gladtherescake.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9696";
};
};
};
};
}