Compare commits

..

2 commits

Author SHA1 Message Date
RingOfStorms (Joshua Bell)
200fe2b85e dont expose port we hit it via tailscale 2026-01-06 14:45:16 -06:00
RingOfStorms (Joshua Bell)
3ba150a787 serve cache 2026-01-06 14:43:16 -06:00
2 changed files with 16 additions and 0 deletions

View file

@ -14,6 +14,13 @@ in
{
nix = lib.mkIf (hasSecret "nix2lio") {
distributedBuilds = true;
# Prefer pulling from lio's binary cache when available.
settings = {
substituters = lib.mkAfter [ "http://lio:5000" ];
trusted-public-keys = lib.mkAfter [ "lio:9jKQ2xJyZjD0AWFzMcLe5dg3s8vOJ3uffujbUkBg4ms=" ];
};
buildMachines = [
{
hostName = "lio";

View file

@ -28,6 +28,15 @@
# STOP_CHARGE_THRESH_BAT0 = 95;
# };
};
# Binary cache server (drop-in nix-serve replacement)
nix-serve = {
enable = true;
package = pkgs.nix-serve-ng;
port = 5000;
# openFirewall = true;
secretKeyFile = "/var/lib/nix-serve/cache-priv-key.pem";
};
};
# Also allow this key to work for root user, this will let us use this as a remote builder easier