diff --git a/modules/gnome-extensions.nix b/modules/gnome-extensions.nix index f94bc8b..1642339 100644 --- a/modules/gnome-extensions.nix +++ b/modules/gnome-extensions.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { # Example: https://github.com/nix-community/home-manager/issues/284#issuecomment-1321199263 @@ -16,11 +16,16 @@ packages = with pkgs.gnomeExtensions; [ caffeine openweather - x11-gestures - ]; + ] ++ ( + if (! config.services.xserver.displayManager.gdm.wayland) + # If on X11. + then [ x11-gestures ] + else [] + ); }; - services.touchegg.enable = true; # Dependency of x11-gestures. + # If on X11. + services.touchegg.enable = lib.mkIf (! config.services.xserver.displayManager.gdm.wayland) true; # Dependency of x11-gestures. home-manager.users.yoda = { osConfig, config, pkgs, ... }: { # TODO: Alternative