From 3acfe2274d136349eb3e9ada05ec4de602532b1a Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 9 Sep 2024 14:56:13 +0200 Subject: [PATCH] only install x11-gestures extension if on X11 --- modules/gnome-extensions.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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; };