From b821ac5226af97ee677df37deeb75995b6e90e8f Mon Sep 17 00:00:00 2001 From: ooks-io Date: Thu, 16 May 2024 22:03:07 +1200 Subject: [PATCH] refactor(systemModules:video): change mkIf condition to != phone --- system/modules/video/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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"]; + }; + }; }; }