refactor(systemModules:video): change mkIf condition to != phone

This commit is contained in:
ooks-io 2024-05-16 22:03:07 +12:00
parent c5739925e9
commit b821ac5226

View file

@ -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"];
};
};
};
}