From cde2658789cf45a8e4f987d6829cf46e10553305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Fri, 1 May 2026 21:24:16 +0200 Subject: [PATCH] distributed builds: fix swapped key, add pc2 --- flake.nix | 7 +++++-- nixosModules/distributed-builds.nix | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 57d4037..2c80aec 100644 --- a/flake.nix +++ b/flake.nix @@ -148,7 +148,10 @@ home-manager-users = { inherit (self.homeConfigurations) muede; }; - distributedBuilds.isBuilder = true; + distributedBuilds = { + isBuilder = true; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAbojdhb3PfazSRmudvo381Y+zUFVLMa7AbWbfK/Zp2 muede-lpt2-nix-builds"; + }; }; muede-pc2 = { system = "x86_64-linux"; @@ -157,7 +160,7 @@ }; distributedBuilds = { isBuilder = true; - publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKAbojdhb3PfazSRmudvo381Y+zUFVLMa7AbWbfK/Zp2 muede-pc2-nix-builds"; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHmnyhP6L+kGHV15cb/d31AQr50wSEaQhkUBwy2+OEKk muede-pc2-nix-builds"; }; }; ronja-pc = { diff --git a/nixosModules/distributed-builds.nix b/nixosModules/distributed-builds.nix index a811a71..27804ee 100644 --- a/nixosModules/distributed-builds.nix +++ b/nixosModules/distributed-builds.nix @@ -17,7 +17,7 @@ let # === Onboarding a device as a build client === # # 1. Generate a key pair on the device: - # sudo ssh-keygen -t ed25519 -f /etc/nix/distributed-build-key -N "" -C "-nix-builds" + # sudo ssh-keygen -t ed25519 -f /etc/nix/distributed-build-key -N "" -C "$(hostname)-nix-builds" # (owned by root, mode 0600) # # 2. Add the public key to the device entry in flake.nix: