From a0bf823599f141d373267ec87255eaeb26c584b8 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 18 Sep 2023 21:48:41 +0200 Subject: [PATCH] GNOME extensions --- modules/gnome-extensions.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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