From a2e8ca3af31e54560c2300cb52982fcef79b5ba1 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Sun, 20 Apr 2025 17:23:56 +0300 Subject: [PATCH] hardware params --- configuration.nix | 4 ++-- hardware-configuration.nix | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 63e20a2..d9be950 100644 --- a/configuration.nix +++ b/configuration.nix @@ -26,7 +26,7 @@ }; }; - boot.kernelPackages = pkgs.linuxPackages_6_10; + boot.kernelPackages = pkgs.linuxPackages_6_12; # boot.kernelPatches = [ # { # name = "amd-drm-glitch-fix"; @@ -36,7 +36,7 @@ # }); # } # ]; - boot.kernelParams = ["amd_pstate=active"]; + boot.kernelParams = ["amd_pstate=active" "iommu=relaxed"]; boot.supportedFilesystems = ["ntfs"]; networking.hostName = "nixos"; # Define your hostname. diff --git a/hardware-configuration.nix b/hardware-configuration.nix index c0e9ab8..c07bdbc 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -35,4 +35,8 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.ryzen-smu.enable = true; + + # to enable gamepads + hardware.steam-hardware.enable = true; }