diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-11 20:53:34 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-11 20:53:34 +0530 |
| commit | 44861481073bc3cdad0a5c7794c77f60e42d5ba1 (patch) | |
| tree | 1264d233a168722605b42834b59a888f754f469e | |
| parent | d72b6a8881d5a329d0e4aa9c43b6953a9b7be32c (diff) | |
update
| -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"]; } |
