2023-05-28 21:45:49 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-12-01 14:47:40 +00:00
|
|
|
|
2021-12-08 16:39:00 +00:00
|
|
|
let
|
|
|
|
domain = "tube.giugl.io";
|
2022-11-13 21:04:27 +00:00
|
|
|
in
|
|
|
|
{
|
2023-06-05 03:50:44 +01:00
|
|
|
services.invidious = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstablePkgs.invidious;
|
2023-09-08 19:30:44 +01:00
|
|
|
settings = {
|
|
|
|
hmac_key = "a2a91eca269d26de1221285e8981879834045bff";
|
|
|
|
};
|
2023-06-05 03:50:44 +01:00
|
|
|
};
|
2023-10-21 14:00:58 +01:00
|
|
|
|
2023-06-05 03:50:44 +01:00
|
|
|
architect.vhost.${domain} = {
|
2023-10-21 14:00:58 +01:00
|
|
|
dnsInterfaces = [ "lan" "tailscale" ];
|
2023-11-16 12:27:33 +00:00
|
|
|
locations."/" = {
|
|
|
|
port = config.services.invidious.port;
|
|
|
|
allowWAN = true;
|
|
|
|
};
|
2021-12-01 14:47:40 +00:00
|
|
|
};
|
|
|
|
}
|