nixos/hosts/architect/bazarr.nix

34 lines
661 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
let
domain = "htbaz.giugl.io";
network = import ./network.nix;
auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
in
{
2021-07-07 13:13:19 +01:00
services = {
2022-02-15 10:58:08 +00:00
bazarr = {
enable = true;
group = "media";
};
2021-07-07 13:13:19 +01:00
nginx.virtualHosts.${domain} = {
2021-07-07 13:13:19 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:6767";
2022-10-28 13:56:25 +01:00
extraConfig = auth_block {
access_role = "bazarr";
2022-10-28 13:56:25 +01:00
};
2021-07-07 13:13:19 +01:00
};
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
2021-07-07 13:13:19 +01:00
'';
2021-11-25 11:42:32 +00:00
users.groups.media.members = [ "bazarr" ];
2021-07-07 13:13:19 +01:00
}