35 lines
699 B
Nix
35 lines
699 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
domain = "htrad.giugl.io";
|
|
network = import ./network.nix;
|
|
auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
|
|
in
|
|
{
|
|
services = {
|
|
radarr = {
|
|
enable = true;
|
|
group = "media";
|
|
};
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:7878";
|
|
extraConfig = auth_block {
|
|
access_role = "radarr";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.extraHosts = ''
|
|
${network.architect-lan} ${domain}
|
|
${network.architect-wg} ${domain}
|
|
${network.architect-ts} ${domain}
|
|
'';
|
|
|
|
users.groups.media.members = [ "radarr" ];
|
|
}
|