From 180aead234a638d4859879e45e8ae910eec9baa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 29 Feb 2024 12:16:57 +0100 Subject: [PATCH] Add xdg protal and opengl --- hosts/prismo/configuration.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hosts/prismo/configuration.nix b/hosts/prismo/configuration.nix index 41b7441..1377b8a 100644 --- a/hosts/prismo/configuration.nix +++ b/hosts/prismo/configuration.nix @@ -19,11 +19,22 @@ # Set time stuff time.timeZone = "Europe/Oslo"; + # Enable opengl + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiVdpau + libvdpau-va-gl + ]; + }; + # Setup hyprland services.xserver.enable = true; programs.hyprland = { enable = true; xwayland.enable = true; + portalPackage = pkgs.xdg-desktop-portal-hyprland; }; # Setup common XDG env vars @@ -36,6 +47,16 @@ PATH = [ "${XDG_BIN_HOME}" ]; }; + # Setup xdg portal + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + extraPortals = (with pkgs; [ + xdg-desktop-portal-hyprland + xdg-desktop-portal-gtk + ]); + }; + # Enable flakes nix.settings.experimental-features = [ "nix-command" "flakes" ];