From eb7338ba374ee835388eb09dd43677cdc2f59b56 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 7 Feb 2026 14:21:31 -0800 Subject: [PATCH] remove xremap from NixOS config keyd handles all key remapping now, so xremap is no longer needed. Co-Authored-By: Claude Opus 4.6 --- nixos/desktop.nix | 1 - nixos/xremap.nix | 32 -------------------------------- 2 files changed, 33 deletions(-) delete mode 100644 nixos/xremap.nix diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 39be46b2..067a8692 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -5,7 +5,6 @@ makeEnable config "myModules.desktop" true { ./fonts.nix ./hyprland.nix ./keyd.nix - ./xremap.nix ]; assertions = [ diff --git a/nixos/xremap.nix b/nixos/xremap.nix deleted file mode 100644 index 99df653a..00000000 --- a/nixos/xremap.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, lib, pkgs, makeEnable, ... }: -makeEnable config "myModules.xremap" true { - hardware.uinput.enable = true; - boot.kernelModules = [ "uinput" ]; - - services.udev.extraRules = lib.mkAfter '' - KERNEL=="uinput", GROUP="input", TAG+="uaccess" - ''; - - environment.etc."xremap/config.yml".text = '' - keymap: - - name: Chrome emacs-ish - application: - only: [Google-chrome, Google-chrome-stable, google-chrome, Chromium, chromium] - remap: - C-a: Home - C-e: End - Alt-b: C-Left - Alt-f: C-Right - ''; - - environment.systemPackages = [ pkgs.xremap ]; - - systemd.user.services.xremap = { - description = "xremap key remapper"; - wantedBy = [ "default.target" ]; - serviceConfig = { - ExecStart = "${pkgs.xremap}/bin/xremap /etc/xremap/config.yml --watch"; - Restart = "on-failure"; - }; - }; -}