only install x11-gestures extension if on X11

This commit is contained in:
Daniel Langbein 2024-09-09 14:56:13 +02:00
parent 4679085e09
commit 3acfe2274d
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -23,8 +23,8 @@
);
};
# If on X11.
services.touchegg.enable = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) true; # Dependency of x11-gestures.
# If on X11: Enable dependency of "x11-gestures".
services.touchegg.enable = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# TODO: Alternative
@ -40,8 +40,14 @@
enabled-extensions = [
pkgs.gnomeExtensions.caffeine.extensionUuid
pkgs.gnomeExtensions.openweather.extensionUuid
] ++ (
if (! osConfig.services.xserver.displayManager.gdm.wayland)
then [
pkgs.gnomeExtensions.x11-gestures.extensionUuid
];
]
else []
);
# TODO: Alternative to the above
# enabled-extensions = map (extension: extension.extensionUuid) home.packages;
};