{ config, lib, pkgs, ... }: let cfg = config.skyg.nixos.desktop; in { config = lib.mkIf cfg.enable { services.xserver = { enable = true; xkb.layout = "us"; xkb.variant = ""; }; users.users.${config.skyg.user.name}.extraGroups = [ "input" ]; environment.systemPackages = with pkgs; [ # These are used to handle touchpad gestures libinput-gestures wmctrl xdotool ]; system.userActivationScripts.hyprlandMineConfig.text = '' ln -sfn "/home/${config.skyg.user.name}/nixos-setup/configs/libinput-gestures.conf" "$HOME/.config/libinput-gestures.conf" ''; }; }