From fc62ec49d409f844122b055c626e1df7ddfca291 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 7 Oct 2023 17:47:18 +0900 Subject: [PATCH] Remote Build test --- nixos/common/modules/remote-builders.nix | 2 +- nixos/hosts/nixos-vm-01/default.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/common/modules/remote-builders.nix b/nixos/common/modules/remote-builders.nix index b0e08663..962d724a 100644 --- a/nixos/common/modules/remote-builders.nix +++ b/nixos/common/modules/remote-builders.nix @@ -1,5 +1,5 @@ { - nix.trustedUsers = [ "albert" ]; + nix.trusted-users = [ "albert" ]; nix.buildMachines = [ { hostName = "nixos-vm-01"; # Only availalbe on the Headscale network diff --git a/nixos/hosts/nixos-vm-01/default.nix b/nixos/hosts/nixos-vm-01/default.nix index 1eb00a06..f8c34958 100644 --- a/nixos/hosts/nixos-vm-01/default.nix +++ b/nixos/hosts/nixos-vm-01/default.nix @@ -7,6 +7,9 @@ boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + # Testing remote builldings + users.users.root.openssh.authorizedKeys.keyFiles = [ ../../../ssh/keys/builder-keys.txt ]; + # For cross-architecture builds boot.binfmt.emulatedSystems = [ "aarch64-linux"