From 3b821b9320720d44401d82a2758269d662c4b813 Mon Sep 17 00:00:00 2001 From: yuri Date: Sun, 14 Jan 2024 00:25:48 +0100 Subject: [PATCH] Add builder user to hydra for remote building --- config/hosts/hydra/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/hosts/hydra/configuration.nix b/config/hosts/hydra/configuration.nix index 53a26b0..eff89d1 100644 --- a/config/hosts/hydra/configuration.nix +++ b/config/hosts/hydra/configuration.nix @@ -21,8 +21,18 @@ }; }; + users.users.builder = { + isNormalUser = true; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeIiHkHA5c6/jZx+BB28c5wchdzlFI7R1gbvNmPyoOg root@kiara" + ]; + }; + nix = { - settings.allowed-uris = "http:// https://"; + settings = { + trusted-users = [ "builder" ]; + allowed-uris = "http:// https://"; + }; buildMachines = [ { hostName = "localhost";