2023-05-12 22:05:10 +01:00
|
|
|
{ config, lib, ... }:
|
2021-12-08 16:39:00 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
domain = "htbaz.giugl.io";
|
2022-11-11 18:08:57 +00:00
|
|
|
in
|
|
|
|
{
|
2023-06-04 23:50:31 +01:00
|
|
|
services.bazarr = {
|
|
|
|
enable = true;
|
|
|
|
group = "media";
|
|
|
|
};
|
2021-07-07 13:13:19 +01:00
|
|
|
|
2023-06-04 23:50:31 +01:00
|
|
|
architect.vhost.${domain} = with config.architect.networks; {
|
|
|
|
dnsInterfaces = [ "lan" "wireguard" "tailscale" ];
|
|
|
|
locations."/" = {
|
|
|
|
port = 6767;
|
|
|
|
deny = [ lan.devices.router.address ];
|
|
|
|
allow = [
|
|
|
|
lan.net
|
|
|
|
wireguard.net
|
|
|
|
tailscale.net
|
|
|
|
];
|
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
|
|
|
}
|