nixos/hosts/architect/radarr.nix

31 lines
624 B
Nix
Raw Normal View History

{ lib, ... }:
let
domain = "htrad.giugl.io";
network = import ./network.nix;
in {
2021-07-07 13:13:19 +01:00
services = {
radarr.enable = true;
nginx.virtualHosts.${domain} = {
2021-07-07 13:13:19 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:7878";
extraConfig = ''
allow 10.0.0.0/24;
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
2021-07-07 13:13:19 +01:00
deny all;
'';
};
};
};
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 = [ "radarr" ];
2021-07-07 13:13:19 +01:00
}