mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
only install x11-gestures extension if on X11
This commit is contained in:
parent
4679085e09
commit
3acfe2274d
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user