nixos/hosts/architect/invidious.nix

27 lines
434 B
Nix

{ pkgs, ... }:
with import ./network.nix;
let domain = "tube.giugl.io";
in {
services = {
invidious = {
enable = true;
port = 9092;
};
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9092";
};
};
};
networking.extraHosts = ''
${architect-lan} ${domain}
${architect-wg} ${domain}
'';
}