36 lines
778 B
Nix
36 lines
778 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
domain = "htrad.giugl.io";
|
|
network = import ./network.nix;
|
|
auth_block = (import ./openid.nix).openresty_oidc_block;
|
|
in {
|
|
services = {
|
|
radarr = {
|
|
enable = true;
|
|
group = "media";
|
|
};
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:7878";
|
|
extraConfig = auth_block {
|
|
realm = "master";
|
|
client_id = "radarr";
|
|
client_secret = "DCoeN4PwqGrAoG6Mqw73orrUjojJ1fmn";
|
|
redirect_uri = "https://${domain}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.extraHosts = ''
|
|
${network.architect-lan} ${domain}
|
|
${network.architect-wg} ${domain}
|
|
'';
|
|
|
|
users.groups.media.members = [ "radarr" ];
|
|
}
|