diff options
author | Sam Grayson <sam@samgrayson.me> | 2023-10-25 23:09:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 23:09:33 -0500 |
commit | 14ffe0e240a19beafd39921ed0f9351fa63b6a7e (patch) | |
tree | db13b8508985ad3da040e60583df1cbfa37a38ab /nixos/modules/installer | |
parent | da32d38b1c52ba6d324ae382ec9d852b7c9da0f0 (diff) | |
parent | 77ed358e3d7945116cd0641d10928b5ee14c4db1 (diff) | |
download | nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar.gz nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar.bz2 nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar.lz nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar.xz nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.tar.zst nixlib-14ffe0e240a19beafd39921ed0f9351fa63b6a7e.zip |
Merge branch 'NixOS:master' into patch-1
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 16 | ||||
-rw-r--r-- | nixos/modules/installer/tools/tools.nix | 6 |
2 files changed, 3 insertions, 19 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 7d0c5898e23d..85180bf2d1b4 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -102,22 +102,6 @@ sub cpuManufacturer { return $cpuinfo =~ /^vendor_id\s*:.* $id$/m; } - -# Determine CPU governor to use -if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") { - my $governors = read_file("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"); - # ondemand governor is not available on sandy bridge or later Intel CPUs - my @desired_governors = ("ondemand", "powersave"); - my $e; - - foreach $e (@desired_governors) { - if (index($governors, $e) != -1) { - last if (push @attrs, "powerManagement.cpuFreqGovernor = lib.mkDefault \"$e\";"); - } - } -} - - # Virtualization support? push @kernelModules, "kvm-intel" if hasCPUFeature "vmx"; push @kernelModules, "kvm-amd" if hasCPUFeature "svm"; diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 78bcbbe2db5a..d385e4a6b1c8 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -163,15 +163,15 @@ in # console = { # font = "Lat2-Terminus16"; # keyMap = "us"; - # useXkbConfig = true; # use xkbOptions in tty. + # useXkbConfig = true; # use xkb.options in tty. # }; $xserverConfig $desktopConfiguration # Configure keymap in X11 - # services.xserver.layout = "us"; - # services.xserver.xkbOptions = "eurosign:e,caps:escape"; + # services.xserver.xkb.layout = "us"; + # services.xserver.xkb.options = "eurosign:e,caps:escape"; # Enable CUPS to print documents. # services.printing.enable = true; |