From 045eb7bb00f0245e7fd4e7d3c368a17a400e6c68 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 29 Jun 2024 22:10:01 -0400 Subject: [PATCH] feat: use http for cache if tailscale not enabled --- common/modules/cachix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/modules/cachix.nix b/common/modules/cachix.nix index e3ff38e..c731dfe 100644 --- a/common/modules/cachix.nix +++ b/common/modules/cachix.nix @@ -33,10 +33,14 @@ in { # Caddy "https://caddycf.cachix.org" ] - ++ optionals (!config.services.nix-serve.enable) [ + ++ optionals (!config.services.nix-serve.enable && config.services.tailscale.enable) [ # Personal config cache "https://cache.nelim.org" + ] + ++ optionals (!config.services.nix-serve.enable && !config.services.tailscale.enable) [ + "http://10.0.0.249:5000" ]; + trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="