* The kernel's default overcommit heuristic renders Nix incapable of forking on machines with little RAM (unless GC_INITIAL_HEAP_SIZE is set to a low value). So turn off checking.
* The kernel's default overcommit heuristic renders Nix incapable of forking on machines with little RAM (unless GC_INITIAL_HEAP_SIZE is set to a low value). So turn off checking. svn path=/configurations/trunk/tud/; revision=25817
Eelco Dolstra committed
Feb 8, 2011 at 15:15 UTC
4d96f867379a0d33e69a13fdc830dd8ee6a076f7
1 file changed
+8
drdoctor.nix
+8
@@ -17,4 +17,12 @@
17
];
18
19
services.openssh.enable = true;
20
+
21
+ # The kernel's default overcommit heuristic renders Nix incapable of
22
+ # forking on machines with little RAM (unless GC_INITIAL_HEAP_SIZE
23
+ # is set to a low value). So turn off checking.
24
+ boot.postBootCommands =
25
+ ''
26
+ echo 1 > /proc/sys/vm/overcommit_memory
27
+ '';
28
}