nixos/hosts/architect/lidarr.nix

33 lines
661 B
Nix
Raw Permalink Normal View History

2022-02-15 10:58:08 +00:00
{ lib, ... }:
let
domain = "htlid.giugl.io";
network = import ./network.nix;
auth_block = (import ./openid.nix { inherit lib; }).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://127.0.0.1:8686";
2022-10-28 13:48:46 +01:00
extraConfig = auth_block {
access_role = "lidarr";
2022-10-28 13:48:46 +01:00
};
2022-02-15 10:58:08 +00:00
};
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
'';
users.groups.media.members = [ "lidarr" ];
}