refactor(systemModules:video): change mkIf condition to != phone
This commit is contained in:
parent
c5739925e9
commit
b821ac5226
1 changed files with 11 additions and 2 deletions
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue