3
0
Fork 0
forked from mirrors/nixpkgs

Added configuration.nix option to add entries into nix.conf .

svn path=/nixos/trunk/; revision=8910
This commit is contained in:
Michael Raskin 2007-06-21 17:14:33 +00:00
parent 9ad649ea36
commit 0e92d41124
3 changed files with 15 additions and 0 deletions

View file

@ -96,6 +96,9 @@ if test -z "@readOnlyRoot@"; then
# WARNING: this file is generated.
build-users-group = nixbld
build-max-jobs = @maxJobs@
@extraNixOptions@
EOF
chown root.nixbld /nix/store

View file

@ -847,6 +847,17 @@
";
}
{
name = ["nix" "extraOptions"];
default = "";
example = "
gc-keep-outputs = true
gc-keep-derivations = true
";
description = "
This option allows to append lines to nix.conf.
";
}
{
name = ["security" "setuidPrograms"];

View file

@ -249,6 +249,7 @@ rec {
config.get ["security" "setuidPrograms"] ++
config.get ["security" "extraSetuidPrograms"];
maxJobs = config.get ["nix" "maxJobs"];
extraNixOptions = config.get ["nix" "extraOptions"];
inherit (usersGroups) createUsersGroups usersList groupsList;