From 91c72f4e4308f35bb37e7293d5daa23772213576 Mon Sep 17 00:00:00 2001 From: chn Date: Sat, 15 Jul 2023 22:12:29 +0800 Subject: [PATCH] move kernelParams --- modules/boot/chn-PC.nix | 1 - modules/boot/kernel.nix | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/boot/chn-PC.nix b/modules/boot/chn-PC.nix index 721d97e0..198ebc4c 100644 --- a/modules/boot/chn-PC.nix +++ b/modules/boot/chn-PC.nix @@ -12,7 +12,6 @@ inputs: options iwlmvm power_scheme=1 options iwlwifi uapsd_disable=1 ''; - boot.kernelParams = [ "delayacct" "acpi_osi=Linux" ]; boot.kernelPatches = [ { name = "hdmi"; patch = ./hdmi.patch; } diff --git a/modules/boot/kernel.nix b/modules/boot/kernel.nix index c9ac051f..d1e65f22 100644 --- a/modules/boot/kernel.nix +++ b/modules/boot/kernel.nix @@ -6,7 +6,11 @@ }; config = { - boot.kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest; + boot = + { + kernelParams = [ "delayacct" "acpi_osi=Linux" ]; + kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest; + }; hardware.cpu = builtins.listToAttrs (builtins.map (name: { inherit name; value = { updateMicrocode = true; }; }) inputs.config.nixos.kernel.cpu);