From e6a15db534d18d0eefb5916ee87b4951d51af2cf Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Tue, 7 Apr 2020 08:21:02 +0100 Subject: nixos: default nix.maxJobs to auto Instead of making the configuration less portable by hard coding the number of jobs equal to the cores we can also let nix set the same number at runtime. --- nixos/modules/installer/tools/nixos-generate-config.pl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl') diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 629c56814a1..a32c19a4eba 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -91,9 +91,6 @@ sub hasCPUFeature { } -# Detect the number of CPU cores. -my $cpus = scalar (grep {/^processor\s*:/} (split '\n', $cpuinfo)); - # Determine CPU governor to use if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") { @@ -562,7 +559,6 @@ my $hwConfig = <