2022-02-15 10:58:08 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
domain = "htlid.giugl.io";
|
|
|
|
network = import ./network.nix;
|
2022-10-28 13:48:46 +01:00
|
|
|
auth_block = (import ./openid.nix).openresty_oidc_block;
|
2022-02-15 10:58:08 +00:00
|
|
|
in {
|
|
|
|
services = {
|
|
|
|
lidarr = {
|
|
|
|
enable = true;
|
|
|
|
group = "media";
|
|
|
|
};
|
|
|
|
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:8686";
|
2022-10-28 13:48:46 +01:00
|
|
|
extraConfig = auth_block {
|
|
|
|
realm = "master";
|
|
|
|
client_id = "lidarr";
|
|
|
|
client_secret = "7s4dd1SEi84F4fUFsqRaQmSSucZhyTco";
|
|
|
|
redirect_uri = "https://${domain}";
|
|
|
|
};
|
2022-02-15 10:58:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.extraHosts = ''
|
|
|
|
${network.architect-lan} ${domain}
|
|
|
|
${network.architect-wg} ${domain}
|
|
|
|
'';
|
|
|
|
|
|
|
|
users.groups.media.members = [ "lidarr" ];
|
|
|
|
}
|