nixos/hosts/architect/invidious.nix

27 lines
490 B
Nix
Raw Permalink Normal View History

2022-11-13 21:04:27 +00:00
{ lib, pkgs, ... }:
let
domain = "tube.giugl.io";
network = import ./network.nix;
2022-11-13 21:04:27 +00:00
in
{
services = {
invidious = {
enable = true;
port = 9092;
2022-11-13 21:04:27 +00:00
package = pkgs.unstable.invidious;
};
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:9092"; };
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
'';
}