add vidyos

This commit is contained in:
Cyryl Płotnicki 2023-10-21 22:14:19 +01:00
parent cb2947f56d
commit 346eea7d8e
4 changed files with 43 additions and 16 deletions

View file

@ -1,17 +1,10 @@
{ {lib, ...}: {
config,
pkgs,
inputs,
lib,
...
}: {
imports = [ imports = [
../cli.nix ../cli.nix
./bolty-boot.nix ./bolty-boot.nix
./gitea-runner.nix ./gitea-runner.nix
./home-assistant.nix ./home-assistant.nix
./home-security.nix ./home-security.nix
./matrix-server.nix
./nas.nix ./nas.nix
./networking.nix ./networking.nix
./nix-store-server.nix ./nix-store-server.nix
@ -19,6 +12,7 @@
./real-hardware.nix ./real-hardware.nix
./restic-server.nix ./restic-server.nix
./tailscale-cert.nix ./tailscale-cert.nix
./videos.nix
./virtualisation.nix ./virtualisation.nix
]; ];
boot.binfmt.emulatedSystems = ["aarch64-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux"];

View file

@ -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";
};
};
}

View file

@ -1,10 +1,4 @@
{ {...}: {
config,
pkgs,
inputs,
lib,
...
}: {
networking.hostName = "vpsfree1"; networking.hostName = "vpsfree1";
imports = [ imports = [
@ -16,10 +10,10 @@
./foundryvtt.nix ./foundryvtt.nix
./gitea.nix ./gitea.nix
./mastodon.nix ./mastodon.nix
./matrix-front.nix
./rss.nix ./rss.nix
./ssh.nix ./ssh.nix
./syncthing-relay.nix ./syncthing-relay.nix
./videos.nix
]; ];
systemd.extraConfig = '' systemd.extraConfig = ''

View file

@ -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;
};
};
};
};
}