27 lines
443 B
Nix
27 lines
443 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
domain = "htson.giugl.io";
|
|
in
|
|
{
|
|
services.sonarr = {
|
|
enable = true;
|
|
group = "media";
|
|
package = pkgs.unstablePkgs.sonarr;
|
|
};
|
|
|
|
architect.vhost.${domain} = with config.architect.networks; {
|
|
dnsInterfaces = [ "tailscale" ];
|
|
|
|
locations."/" = {
|
|
port = 8989;
|
|
allowLan = true;
|
|
allow = [
|
|
tailscale.net
|
|
];
|
|
};
|
|
};
|
|
|
|
users.groups.media.members = [ "sonarr" ];
|
|
}
|