mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
linux-builder: default pass through protocol to nix.buildMachines
This commit adds a protocol option for the `linux-builder` and defaults it to `ssh-ng`. I have observed it needing this with the following: ``` sh $ nix store ping --store ssh://linux-builder Store URL: ssh://linux-builder $ nix store ping --store ssh-ng://linux-builder Store URL: ssh-ng://linux-builder Version: 2.18.1 Trusted: 0 ``` This seems to make the difference on whether or not Nix picks up `linux-builder` as an available builder.
This commit is contained in:
parent
0e6857fa1d
commit
61c5879b5a
1 changed files with 15 additions and 1 deletions
|
@ -71,6 +71,20 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
protocol = mkOption {
|
||||
type = types.str;
|
||||
default = "ssh-ng";
|
||||
example = "ssh";
|
||||
description = lib.mdDoc ''
|
||||
The protocol used for communicating with the build machine. Use
|
||||
`ssh-ng` if your remote builder and your local Nix version support that
|
||||
improved protocol.
|
||||
|
||||
Use `null` when trying to change the special localhost builder without a
|
||||
protocol which is for example used by hydra.
|
||||
'';
|
||||
};
|
||||
|
||||
supportedFeatures = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ "kvm" "benchmark" "big-parallel" ];
|
||||
|
@ -141,7 +155,7 @@ in
|
|||
sshKey = "/etc/nix/builder_ed25519";
|
||||
system = "${stdenv.hostPlatform.uname.processor}-linux";
|
||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
|
||||
inherit (cfg) maxJobs supportedFeatures;
|
||||
inherit (cfg) maxJobs protocol supportedFeatures;
|
||||
}];
|
||||
|
||||
nix.settings.builders-use-substitutes = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue