From 356526f2b06a1fb2c0b41566c808012fccda1e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sat, 28 Oct 2023 23:16:15 +0200 Subject: [PATCH] fix: add pub.solar binary cache --- hosts/frikandel/wireguard.nix | 2 +- modules/nix/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/frikandel/wireguard.nix b/hosts/frikandel/wireguard.nix index af739ad..ff4aa9a 100644 --- a/hosts/frikandel/wireguard.nix +++ b/hosts/frikandel/wireguard.nix @@ -16,7 +16,7 @@ networking.nat = { enable = true; enableIPv6 = true; - internalInterfaces = [ "wg-server" ]; + internalInterfaces = [ "wg0" ]; }; networking.firewall.allowedUDPPorts = [ 51899 ]; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 89464f2..ab92f97 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -30,6 +30,14 @@ trusted-users = ["root" "@wheel"]; # Allow only group wheel to connect to the nix daemon allowed-users = ["@wheel"]; + + substituters = [ + "https://pub-solar.cachix.org/" + ]; + + trusted-public-keys = [ + "pub-solar.cachix.org-1:ZicXIxKgdxMtgSJECWR8iihZxHRvu8ObL4n2cuBmtos=" + ]; }; # Generally useful nix option defaults