From b5e0ecffe90aa30138c2ab60ef5be32c5377e532 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 18 Feb 2024 20:55:35 +0100 Subject: [PATCH] proper vulkan setup --- hosts/omega/hardware.nix | 3 +++ modules/desktop/sway.nix | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hosts/omega/hardware.nix b/hosts/omega/hardware.nix index b79bd61..832f36c 100644 --- a/hosts/omega/hardware.nix +++ b/hosts/omega/hardware.nix @@ -52,4 +52,7 @@ networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + + # nixos-hardware + hardware.amdgpu.amdvlk = true; } diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index 318c52f..033460e 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -288,6 +288,7 @@ # xdg portal allows applications secure access to resources outside their # sandbox through a D-Bus interface. In particular, this allows screen # sharing on Wayland via PipeWire and file open/save dialogues in Firefox. + # https://nixos.org/manual/nixos/stable/index.html#sec-wayland # https://wiki.archlinux.org/title/XDG_Desktop_Portal # https://mozilla.github.io/webrtc-landing/gum_test.html services.dbus.enable = true; @@ -299,10 +300,4 @@ xdg-desktop-portal-gtk ]; }; - - # TODO - hardware.opengl = { - enable = true; - extraPackages = with pkgs; [ intel-media-driver ]; - }; }