mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/nix-daemon: doc: use literalExample
Makes the example more readable by not squashed everything onto one single line.
This commit is contained in:
parent
4da420709d
commit
316e7d6764
1 changed files with 17 additions and 16 deletions
|
@ -164,22 +164,23 @@ in
|
||||||
buildMachines = mkOption {
|
buildMachines = mkOption {
|
||||||
type = types.listOf types.attrs;
|
type = types.listOf types.attrs;
|
||||||
default = [];
|
default = [];
|
||||||
example = [
|
example = literalExample ''
|
||||||
{ hostName = "voila.labs.cs.uu.nl";
|
[ { hostName = "voila.labs.cs.uu.nl";
|
||||||
sshUser = "nix";
|
sshUser = "nix";
|
||||||
sshKey = "/root/.ssh/id_buildfarm";
|
sshKey = "/root/.ssh/id_buildfarm";
|
||||||
system = "powerpc-darwin";
|
system = "powerpc-darwin";
|
||||||
maxJobs = 1;
|
maxJobs = 1;
|
||||||
}
|
}
|
||||||
{ hostName = "linux64.example.org";
|
{ hostName = "linux64.example.org";
|
||||||
sshUser = "buildfarm";
|
sshUser = "buildfarm";
|
||||||
sshKey = "/root/.ssh/id_buildfarm";
|
sshKey = "/root/.ssh/id_buildfarm";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
maxJobs = 2;
|
maxJobs = 2;
|
||||||
supportedFeatures = [ "kvm" ];
|
supportedFeatures = [ "kvm" ];
|
||||||
mandatoryFeatures = [ "perf" ];
|
mandatoryFeatures = [ "perf" ];
|
||||||
}
|
}
|
||||||
];
|
]
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
This option lists the machines to be used if distributed
|
This option lists the machines to be used if distributed
|
||||||
builds are enabled (see
|
builds are enabled (see
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue