diff --git a/.vscode/settings.json b/.vscode/settings.json index 6afe390..24d082b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -211,6 +211,7 @@ "tamasfe", "tiktok", "timonwong", + "tmmworkshop", "Tmpfs", "topsites", "topstories", diff --git a/flake.nix b/flake.nix index 1ea0017..6c8ae55 100644 --- a/flake.nix +++ b/flake.nix @@ -4,10 +4,12 @@ nixConfig = { extra-substituters = [ "https://cache.nixos.org/?priority=1&want-mass-query=true" + "https://cache.tmmworkshop.com/?priority=1&want-mass-query=true" "https://nix-community.cachix.org/?priority=10&want-mass-query=true" ]; extra-trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "cache.tmmworkshop.com:eMF88EDgCka5qKNuRjwjCIw2AIJRP/9gIo3x7fDwg6g=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "cache-nix-dot:Od9KN34LXc6Lu7y1ozzV1kIXZa8coClozgth/SYE7dU=" ]; diff --git a/systems/jeeves/default.nix b/systems/jeeves/default.nix index b6abff4..fb120dc 100644 --- a/systems/jeeves/default.nix +++ b/systems/jeeves/default.nix @@ -29,6 +29,11 @@ in services = { openssh.ports = [ 629 ]; + nix-serve = { + enable = true; + secretKeyFile = "/var/cache-priv-key.pem"; + }; + plex = { enable = true; dataDir = vars.media_plex; diff --git a/systems/jeeves/docker/haproxy.cfg b/systems/jeeves/docker/haproxy.cfg index 6b663c8..4fddc53 100644 --- a/systems/jeeves/docker/haproxy.cfg +++ b/systems/jeeves/docker/haproxy.cfg @@ -31,6 +31,7 @@ frontend ContentSwitching acl host_filebrowser hdr(host) -i filebrowser.tmmworkshop.com acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com acl host_overseerr hdr(host) -i overseerr.tmmworkshop.com + acl host_cache hdr(host) -i cache.tmmworkshop.com use_backend mirror_nodes if host_mirror use_backend dndrules_nodes if host_dndrules @@ -38,6 +39,7 @@ frontend ContentSwitching use_backend filebrowser_nodes if host_filebrowser use_backend uptime_kuma_nodes if host_uptime_kuma use_backend overseerr_nodes if host_overseerr + use_backend cache_nodes if host_cache backend mirror_nodes mode http @@ -66,3 +68,7 @@ backend uptime_kuma_nodes backend overseerr_nodes mode http server server overseerr:5055 + +backend cache_nodes + mode http + server server 192.168.90.40:5000