diff options
| Commit | 8357dea51dec06e388cd2c346115da5ed739db9b (patch) | |
|---|---|---|
| Author | 2023-11-30 21:59:28 +0200 | |
| Committer | 2023-11-30 21:59:28 +0200 | |
| Files | ff1fcbaee791f4cfdd805ed1f85be29a7fe1e8ed /machines/vesta | |
| nix-8357dea51dec06e388cd2c346115da5ed739db9b.tar nix-8357dea51dec06e388cd2c346115da5ed739db9b.tar.gz nix-8357dea51dec06e388cd2c346115da5ed739db9b.zip | ||
| Parent | 217497eb9a81a4546ac020e05848167896302870 (diff) | |
[all] Hardware acceleration
1 files changed, 9 insertions, 2 deletions
| -rw-r--r-- | machines/vesta/configuration.nix | 11 |
diff --git a/machines/vesta/configuration.nix b/machines/vesta/configuration.nix index a50c6c5..fd671d5 100644 --- a/machines/vesta/configuration.nix +++ b/machines/vesta/configuration.nix @@ -9,7 +9,10 @@ fsType = "ext4"; }; - environment.systemPackages = with pkgs; [ alsa-plugins ]; + environment.systemPackages = with pkgs; [ + alsa-plugins + radeontop + ]; # https://github.com/NixOS/nixpkgs/issues/6860 environment.sessionVariables = { @@ -18,7 +21,6 @@ # GPU boot.initrd.kernelModules = [ "amdgpu" ]; - services.xserver.enable = true; services.xserver.videoDrivers = [ "amdgpu" ]; # for Southern Islands (SI ie. GCN 1) cards boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ]; @@ -26,11 +28,16 @@ "L+ /opt/rocm/hip - - - - ${pkgs.hip}" ]; hardware.opengl = { + # Mesa enable = true; + + # OpenCL extraPackages = with pkgs; [ rocm-opencl-icd rocm-opencl-runtime ]; + + # Vulkan driSupport = true; # For 32 bit applications driSupport32Bit = true; |
