distributed builds: fix ssh only accepting build key for real
This commit is contained in:
parent
704e14251f
commit
e394a6e21e
1 changed files with 7 additions and 5 deletions
|
|
@ -102,11 +102,13 @@ in
|
||||||
(lib.mkIf isClient {
|
(lib.mkIf isClient {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
knownHosts = buildServerKnownHosts;
|
knownHosts = buildServerKnownHosts;
|
||||||
extraConfig = ''
|
extraConfig = lib.concatStringsSep "\n" (
|
||||||
Match Host ${lib.concatStringsSep " " (lib.attrNames buildServerDevices)} User ${buildUser}
|
lib.mapAttrsToList (name: _: ''
|
||||||
IdentityFile ${clientSshKeyPath}
|
Match host ${name} user ${buildUser}
|
||||||
IdentitiesOnly yes
|
IdentityFile ${clientSshKeyPath}
|
||||||
'';
|
IdentitiesOnly yes
|
||||||
|
'') buildServerDevices
|
||||||
|
);
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
distributedBuilds = buildMachines != [ ];
|
distributedBuilds = buildMachines != [ ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue