diff --git a/system/modules/video/default.nix b/system/modules/video/default.nix index 3085717..36d529c 100644 --- a/system/modules/video/default.nix +++ b/system/modules/video/default.nix @@ -5,11 +5,10 @@ let inherit (builtins) elem; isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86; host = config.systemModules.host; - validFunction = ["workstation" "gaming" "media-server"]; in { - config = mkIf (elem host.function validFunction) { + config = mkIf (host.type != "phone") { hardware = { opengl = { enable = true; @@ -17,5 +16,15 @@ in driSupport32Bit = isx86Linux pkgs; }; }; + xdg.portal = { + enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + ]; + config = { + common.default = ["gtk"]; + hyprland.default = ["gtk" "hyprland"]; + }; + }; }; }