settings up nixos binary cache

This commit is contained in:
2024-10-06 17:48:56 -04:00
parent ad770612e1
commit d670af616a
4 changed files with 14 additions and 0 deletions

View File

@@ -211,6 +211,7 @@
"tamasfe", "tamasfe",
"tiktok", "tiktok",
"timonwong", "timonwong",
"tmmworkshop",
"Tmpfs", "Tmpfs",
"topsites", "topsites",
"topstories", "topstories",

View File

@@ -4,10 +4,12 @@
nixConfig = { nixConfig = {
extra-substituters = [ extra-substituters = [
"https://cache.nixos.org/?priority=1&want-mass-query=true" "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" "https://nix-community.cachix.org/?priority=10&want-mass-query=true"
]; ];
extra-trusted-public-keys = [ extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"cache.tmmworkshop.com:eMF88EDgCka5qKNuRjwjCIw2AIJRP/9gIo3x7fDwg6g="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache-nix-dot:Od9KN34LXc6Lu7y1ozzV1kIXZa8coClozgth/SYE7dU=" "cache-nix-dot:Od9KN34LXc6Lu7y1ozzV1kIXZa8coClozgth/SYE7dU="
]; ];

View File

@@ -29,6 +29,11 @@ in
services = { services = {
openssh.ports = [ 629 ]; openssh.ports = [ 629 ];
nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
plex = { plex = {
enable = true; enable = true;
dataDir = vars.media_plex; dataDir = vars.media_plex;

View File

@@ -31,6 +31,7 @@ frontend ContentSwitching
acl host_filebrowser hdr(host) -i filebrowser.tmmworkshop.com acl host_filebrowser hdr(host) -i filebrowser.tmmworkshop.com
acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com
acl host_overseerr hdr(host) -i overseerr.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 mirror_nodes if host_mirror
use_backend dndrules_nodes if host_dndrules use_backend dndrules_nodes if host_dndrules
@@ -38,6 +39,7 @@ frontend ContentSwitching
use_backend filebrowser_nodes if host_filebrowser use_backend filebrowser_nodes if host_filebrowser
use_backend uptime_kuma_nodes if host_uptime_kuma use_backend uptime_kuma_nodes if host_uptime_kuma
use_backend overseerr_nodes if host_overseerr use_backend overseerr_nodes if host_overseerr
use_backend cache_nodes if host_cache
backend mirror_nodes backend mirror_nodes
mode http mode http
@@ -66,3 +68,7 @@ backend uptime_kuma_nodes
backend overseerr_nodes backend overseerr_nodes
mode http mode http
server server overseerr:5055 server server overseerr:5055
backend cache_nodes
mode http
server server 192.168.90.40:5000