diff --git a/nixos/boxes/bolty/default.nix b/nixos/boxes/bolty/default.nix index bb8af938..37ce3fc9 100644 --- a/nixos/boxes/bolty/default.nix +++ b/nixos/boxes/bolty/default.nix @@ -1,17 +1,10 @@ -{ - config, - pkgs, - inputs, - lib, - ... -}: { +{lib, ...}: { imports = [ ../cli.nix ./bolty-boot.nix ./gitea-runner.nix ./home-assistant.nix ./home-security.nix - ./matrix-server.nix ./nas.nix ./networking.nix ./nix-store-server.nix @@ -19,6 +12,7 @@ ./real-hardware.nix ./restic-server.nix ./tailscale-cert.nix + ./videos.nix ./virtualisation.nix ]; boot.binfmt.emulatedSystems = ["aarch64-linux"]; diff --git a/nixos/boxes/bolty/videos.nix b/nixos/boxes/bolty/videos.nix new file mode 100644 index 00000000..0df868ae --- /dev/null +++ b/nixos/boxes/bolty/videos.nix @@ -0,0 +1,21 @@ +{inputs, ...}: let + domain = "vidyos.peninsula.industries"; + port = 3876; +in { + services.invidious = { + package = + inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".invidious; + enable = true; + inherit domain; + inherit port; + database.createLocally = true; + nginx.enable = false; + settings = { + external_port = 443; + https_only = true; + disable_proxy = false; + registration_enabled = false; + hmac_key = "hd5YPAk7XR3W7nEWRrP6"; + }; + }; +} diff --git a/nixos/boxes/vpsfree1/default.nix b/nixos/boxes/vpsfree1/default.nix index 0060a49b..ce8d34a7 100644 --- a/nixos/boxes/vpsfree1/default.nix +++ b/nixos/boxes/vpsfree1/default.nix @@ -1,10 +1,4 @@ -{ - config, - pkgs, - inputs, - lib, - ... -}: { +{...}: { networking.hostName = "vpsfree1"; imports = [ @@ -16,10 +10,10 @@ ./foundryvtt.nix ./gitea.nix ./mastodon.nix - ./matrix-front.nix ./rss.nix ./ssh.nix ./syncthing-relay.nix + ./videos.nix ]; systemd.extraConfig = '' diff --git a/nixos/boxes/vpsfree1/videos.nix b/nixos/boxes/vpsfree1/videos.nix new file mode 100644 index 00000000..4cb4e5ef --- /dev/null +++ b/nixos/boxes/vpsfree1/videos.nix @@ -0,0 +1,18 @@ +{...}: let + domain = "vidyos.peninsula.industries"; + port = 3876; +in { + imports = [../nginx.nix]; + services.nginx = { + virtualHosts = { + "${domain}" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://bolty.raptor-carp.ts.net:" + toString port; + proxyWebsockets = true; + }; + }; + }; + }; +}