From 67bc0787739ec2c79d1a15d96f91fbb0ad9bcbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 25 Dec 2022 19:46:20 +0000 Subject: [PATCH] add bolty as substituter --- nixos/boxes/bolty/nix-store-server.nix | 9 --------- nixos/distributed-builds.nix | 1 + nixos/server-security.nix | 2 ++ 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/nixos/boxes/bolty/nix-store-server.nix b/nixos/boxes/bolty/nix-store-server.nix index 37faa40e..9ecaff5f 100644 --- a/nixos/boxes/bolty/nix-store-server.nix +++ b/nixos/boxes/bolty/nix-store-server.nix @@ -3,13 +3,4 @@ pkgs, ... }: { - networking.firewall.allowedTCPPorts = [10000 10001]; - services.minio = { - enable = true; - region = "home"; - dataDir = ["/var/lib/minio/data"]; - configDir = "/var/lib/minio/config"; - listenAddress = ":10000"; - consoleAddress = ":10001"; - }; } diff --git a/nixos/distributed-builds.nix b/nixos/distributed-builds.nix index 3775b3a4..b189ed5f 100644 --- a/nixos/distributed-builds.nix +++ b/nixos/distributed-builds.nix @@ -27,4 +27,5 @@ builders-use-substitutes = true ''; nix.distributedBuilds = true; + nix.settings.substituters = ["nix-builder@bolty" "https://cache.nixos.org/"]; } diff --git a/nixos/server-security.nix b/nixos/server-security.nix index 2d9b9f5a..68bc006b 100644 --- a/nixos/server-security.nix +++ b/nixos/server-security.nix @@ -29,4 +29,6 @@ in { }; nix.settings.trusted-users = ["root" "nix-builder"]; + nix.sshServe.enable = true; + nix.sshServe.keys = authorizedKeys; }