nixos/hosts/architect/nzbget.nix

34 lines
664 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
let
domain = "htnzb.giugl.io";
network = import ./network.nix;
in {
2021-07-07 13:13:19 +01:00
services = {
2022-02-15 10:58:08 +00:00
nzbget = {
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://localhost:6789";
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 = [ "nzbget" ];
2021-07-07 13:13:19 +01:00
}