31 lines
624 B
Nix
31 lines
624 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
domain = "htson.giugl.io";
|
|
network = import ./network.nix;
|
|
in {
|
|
services = {
|
|
sonarr.enable = true;
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:8989";
|
|
extraConfig = ''
|
|
allow 10.0.0.0/24;
|
|
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
|
|
deny all;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.extraHosts = ''
|
|
${network.architect-lan} ${domain}
|
|
${network.architect-wg} ${domain}
|
|
'';
|
|
|
|
users.groups.media.members = [ "sonarr" ];
|
|
}
|