From 1e41b73fb2aa2501ceb710322d29abee636fd727 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 14 Oct 2024 16:54:41 -0400 Subject: [PATCH] pacifidlog: kernel optimizations + qol improvements (#122) * pacifidlog: use xanmod kernel * pacifidlog: add heroic and lutris * legion go: use zenpower * legion go: fix boot params * common/cpu/amd: remove redundant(?) amd_pstate=active param --- hosts/pacifidlog/default.nix | 6 +++++- hwModules/common/cpu/amd/default.nix | 6 +----- hwModules/lenovo/legion/go/default.nix | 19 ++++++++++++++++--- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/hosts/pacifidlog/default.nix b/hosts/pacifidlog/default.nix index 6c2073d3..55cb17d5 100644 --- a/hosts/pacifidlog/default.nix +++ b/hosts/pacifidlog/default.nix @@ -47,7 +47,11 @@ in { }; environment = { - systemPackages = [hhd-ui]; + systemPackages = [ + hhd-ui + pkgs.heroic + pkgs.lutris + ]; variables = { FLAKE = lib.mkForce "github:alyraffauf/nixcfg/24.11"; diff --git a/hwModules/common/cpu/amd/default.nix b/hwModules/common/cpu/amd/default.nix index ea8f5069..04e922b7 100644 --- a/hwModules/common/cpu/amd/default.nix +++ b/hwModules/common/cpu/amd/default.nix @@ -1,9 +1,5 @@ {lib, ...}: { - boot = { - kernelModules = ["kvm-amd"]; - kernelParams = ["amd_pstate=active"]; - }; - + boot.kernelModules = ["kvm-amd"]; hardware.cpu.amd.updateMicrocode = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/hwModules/lenovo/legion/go/default.nix b/hwModules/lenovo/legion/go/default.nix index 6f83f5a3..9ef5d2cc 100644 --- a/hwModules/lenovo/legion/go/default.nix +++ b/hwModules/lenovo/legion/go/default.nix @@ -14,12 +14,25 @@ boot = { initrd = { - availableKernelModules = ["nvme" "sdhci_pci" "thunderbolt" "usb_storage" "usbhid" "xhci_pci"]; + availableKernelModules = [ + "amdgpu" + "nvme" + "rtsx_pci_sdmmc" + "sd_mod" + "sdhci_pci" + "thunderbolt" + "usb_storage" + "usbhid" + "xhci_pci" + ]; + kernelModules = ["amdgpu"]; }; - extraModulePackages = with config.boot.kernelPackages; [acpi_call]; - kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; + blacklistedKernelModules = ["k10temp"]; + extraModulePackages = with config.boot.kernelPackages; [acpi_call zenpower]; + kernelModules = ["zenpower"]; + kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest; }; hardware = {