* 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:
parent
80eafedc16
commit
17d287afa5
@ -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 =
|
||||
|
@ -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.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user