GNOME extensions

This commit is contained in:
Daniel Langbein 2023-09-18 21:48:41 +02:00
parent f35b25de30
commit a0bf823599
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
# Example: https://github.com/nix-community/home-manager/issues/284#issuecomment-1321199263 # Example: https://github.com/nix-community/home-manager/issues/284#issuecomment-1321199263
@ -16,11 +16,16 @@
packages = with pkgs.gnomeExtensions; [ packages = with pkgs.gnomeExtensions; [
caffeine caffeine
openweather 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, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# TODO: Alternative # TODO: Alternative