mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Added settings. Nixpkgs-review shouldn't make my pc crash now
This commit is contained in:
@@ -20,6 +20,16 @@
|
|||||||
../../modules/nixos/udevsimple.nix
|
../../modules/nixos/udevsimple.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# this 4 settings should make nixpkgs-review not crash my laptop
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/swapfile";
|
||||||
|
size = 16384; # 16 GB
|
||||||
|
}
|
||||||
|
];
|
||||||
|
nix.settings.max-jobs = 2;
|
||||||
|
nix.settings.cores = 2;
|
||||||
|
boot.kernel.sysctl."vm.swappiness" = 10;
|
||||||
|
|
||||||
programs.nix-ld.enable = true; #Run unpatched dynamic binaries on NixOS. For example lets run ./a.out from gcc
|
programs.nix-ld.enable = true; #Run unpatched dynamic binaries on NixOS. For example lets run ./a.out from gcc
|
||||||
|
|
||||||
documentation.man.generateCaches = true; # used for the man script
|
documentation.man.generateCaches = true; # used for the man script
|
||||||
|
|||||||
Reference in New Issue
Block a user