NixOS-Config/nixos/package-configs/sonarr/configuration.nix

26 lines
393 B
Nix
Raw Normal View History

2024-01-03 22:51:17 +01:00
{
config,
pkgs,
...
}: {
2024-01-04 13:32:13 +01:00
users.users = {
sonarr.extraGroups = ["aria2"];
};
2024-01-03 22:51:17 +01:00
#uses port 8989
2024-01-03 23:17:05 +01:00
services.sonarr = {
2024-01-03 22:51:17 +01:00
enable = true;
};
2024-01-03 23:13:11 +01:00
services.nginx = {
virtualHosts = {
2024-01-03 23:14:25 +01:00
"sonarr.gladtherescake.eu" = {
2024-01-03 23:13:11 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8989";
};
};
};
};
2024-01-03 22:51:17 +01:00
}