0
0
Fork 0
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:
Bjørn Forsman 2017-03-05 14:04:47 +01:00
parent 4da420709d
commit 316e7d6764

View file

@ -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