diff --git a/configuration.nix b/configuration.nix index f8889ba..327de72 100644 --- a/configuration.nix +++ b/configuration.nix @@ -64,6 +64,7 @@ git cifs-utils # required for network mounting the NAS age + rocmPackages.amdsmi ]; fonts = { diff --git a/hardware-configuration.nix b/hardware-configuration.nix index cdd0753..c42fe0d 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -31,14 +31,19 @@ #TODO: add external hdd, nas, and ssd swapDevices = [ - {device = "/dev/disk/by-uuid/40b22e5b-839d-4189-93e7-246407cc76c7";} + { device = "/dev/disk/by-uuid/40b22e5b-839d-4189-93e7-246407cc76c7"; } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.graphics.enable = true; - hardware.graphics.extraPackages = [pkgs.rocmPackages.clr.icd]; + hardware.graphics.extraPackages = [ pkgs.rocmPackages.clr.icd ]; + + hardware.amdgpu = { + initrd.enable = true; + opencl.enable = true; + }; networking.networkmanager = { enable = true; diff --git a/home/home.nix b/home/home.nix index d9458dc..745c0b4 100644 --- a/home/home.nix +++ b/home/home.nix @@ -26,7 +26,7 @@ top @ { config xdg-user-dirs hyprpicker libqalculate - btop + btop-rocm xfce.thunar prismlauncher playerctl