Update mimir to Linux 6.1, power management tweaks

This commit is contained in:
Erwin Boskma 2023-02-03 14:33:15 +01:00
parent 54b1d8c505
commit a5a06a7070
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY
2 changed files with 5 additions and 3 deletions

View file

@ -36,7 +36,7 @@
base = {
plymouth.enable = true;
work = true;
kernel = pkgs.linuxKernel.packages.linux_6_0;
kernel = pkgs.linuxKernel.packages.linux_6_1;
};
desktop = {
@ -171,6 +171,7 @@
programs.ssh.startAgent = true;
services.envfs.enable = true;
services.cpupower-gui.enable = true;
services.xserver.libinput = {
enable = true;

View file

@ -2,9 +2,9 @@
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ];
boot.kernelParams = [ "amd_pstate.shared_mem=1" ];
# boot.kernelParams = [ "amd_pstate.shared_mem=1" ];
boot.extraModulePackages = [ ] ++
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
(with config.boot.kernelPackages; [ rtl88x2bu zenpower cpupower ]);
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
@ -30,6 +30,7 @@
[{ device = "/dev/disk/by-label/swap"; }];
powerManagement.cpuFreqGovernor = "ondemand";
hardware = {
video.hidpi.enable = true;
enableAllFirmware = true;