From f51d988642c3913bf9acc042018238132b6bb232 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Sun, 19 Apr 2026 23:17:56 +0200 Subject: [PATCH] Added settings. Nixpkgs-review shouldn't make my pc crash now --- hosts/laptop/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 3ffad90..216b428 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -20,6 +20,16 @@ ../../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 documentation.man.generateCaches = true; # used for the man script