diff --git a/modules/gnome-extensions.nix b/modules/gnome-extensions.nix index 0d82721..b2d1c10 100644 --- a/modules/gnome-extensions.nix +++ b/modules/gnome-extensions.nix @@ -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 - pkgs.gnomeExtensions.x11-gestures.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; };