diff options
| -rw-r--r-- | machines/x/configuration.nix | 10 | ||||
| -rw-r--r-- | modules/amd.nix | 2 | ||||
| -rw-r--r-- | modules/amdgpu.nix | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/machines/x/configuration.nix b/machines/x/configuration.nix index 8f31309..62c119e 100644 --- a/machines/x/configuration.nix +++ b/machines/x/configuration.nix @@ -27,6 +27,16 @@ nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfreePredicate = _: true; + services.fstrim.enable = true; + + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + } + } + networking.hostName = "x"; home-manager.users.compromyse = import ./home.nix; diff --git a/modules/amd.nix b/modules/amd.nix index 6ec3e2b..e16e3e9 100644 --- a/modules/amd.nix +++ b/modules/amd.nix @@ -3,6 +3,6 @@ let kver = config.boot.kernelPackages.kernel.version; in { - boot.kernelParams = [ "amd_pstate=active" ]; + boot.kernelParams = [ "amd_pstate=active" "amd_iommu=on" ]; hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware; } diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix index a8367cc..6c1f109 100644 --- a/modules/amdgpu.nix +++ b/modules/amdgpu.nix @@ -18,10 +18,12 @@ driversi686Linux.amdvlk ]; - services.xserver.videoDrivers = [ "amdgpu" ]; - boot.initrd.kernelModules = [ "amdgpu" ]; + services.xserver.videoDrivers = [ "modesetting" ]; systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; + + boot.kernelPackages = pkgs.linuxPackages_zen; + boot.kernelParams = [ "pcie_acs_override=downstream,multifunction"]; } |
