Skip to content

Commit

Permalink
pix: Add touchpad gesture support for Gnome in X11
Browse files Browse the repository at this point in the history
  • Loading branch information
peromage committed Sep 28, 2024
1 parent 1dd2ba4 commit d00cecc
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions __pix__/nixosModules/desktops/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,29 @@ in with lib; {
enableGDM = mkEnableOption "GDM display manager" // { default = true; };
};

config = mkIf cfg.enable {
services.xserver = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = cfg.enableGDM;
displayManager.gdm.wayland = cfgOverall.enableWayland;
};
config = mkMerge [
(mkIf cfg.enable {
services.xserver = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = cfg.enableGDM;
displayManager.gdm.wayland = cfgOverall.enableWayland;
};

environment.systemPackages = with pkgs; [
gnome-tweaks
gnome-extension-manager
dconf2nix
gnome-terminal ## Provides more functionalities than default gnome-console
gnomeExtensions.tray-icons-reloaded
];
};
environment.systemPackages = with pkgs; [
gnome-tweaks
gnome-extension-manager
dconf2nix
gnome-terminal ## Provides more functionalities than default gnome-console
gnomeExtensions.tray-icons-reloaded
];
})

# X11 accessories
(mkIf (cfg.enable && ! cfgOverall.enableWayland) {
environment.systemPackages = with pkgs; [
gnomeExtensions.x11-gestures
];
services.touchegg.enable = true;
})
];
}

0 comments on commit d00cecc

Please sign in to comment.