* Bump the number of maximum open files for Nix builders.

Our VM builds were causing Samba to go over this limit.

svn path=/nixos/trunk/; revision=16960
This commit is contained in:
Eelco Dolstra 2009-09-04 15:27:52 +00:00
parent 80eafedc16
commit 17d287afa5
2 changed files with 16 additions and 0 deletions

View File

@ -230,6 +230,11 @@ in
${config.nix.envVars}
exec nice -n ${builtins.toString config.nix.daemonNiceLevel} ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
'';
extraConfig =
''
limit nofile 4096 4096
'';
};
environment.shellInit =

View File

@ -60,6 +60,8 @@ let
${job.postStop}
end script
'' else ""}
${job.extraConfig}
'';
in
@ -238,6 +240,15 @@ in
'';
};
extraConfig = mkOption {
type = types.string;
default = "";
example = "limit nofile 4096 4096";
description = ''
Additional Upstart stanzas not otherwise supported.
'';
};
};
};