mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
parent
2b4715d3ef
commit
ef3199f782
1 changed files with 25 additions and 0 deletions
|
@ -185,7 +185,30 @@ in
|
|||
you should increase this value.
|
||||
'';
|
||||
};
|
||||
|
||||
binaryCaches = mkOption {
|
||||
default = [ http://nixos.org/binary-cache ];
|
||||
type = types.list types.string;
|
||||
description = ''
|
||||
List of binary cache URLs used to obtain pre-built binaries
|
||||
of Nix packages.
|
||||
'';
|
||||
};
|
||||
|
||||
trustedBinaryCaches = mkOption {
|
||||
default = [ ];
|
||||
example = [ http://hydra.nixos.org/ ];
|
||||
type = types.list types.string;
|
||||
description = ''
|
||||
List of binary cache URLs that non-root users can use (in
|
||||
addition to those specified using
|
||||
<option>nix.binaryCaches</option> by passing
|
||||
<literal>--option binary-caches</literal> to Nix commands.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -216,6 +239,8 @@ in
|
|||
build-max-jobs = ${toString (config.nix.maxJobs)}
|
||||
build-use-chroot = ${if config.nix.useChroot then "true" else "false"}
|
||||
build-chroot-dirs = ${toString config.nix.chrootDirs} $(echo $extraPaths)
|
||||
binary-caches = ${toString config.nix.binaryCaches}
|
||||
trusted-binary-caches = ${toString config.nix.trustedBinaryCaches}
|
||||
$extraOptions
|
||||
END
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue