remove xremap from NixOS config

keyd handles all key remapping now, so xremap is no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 14:21:31 -08:00
committed by Kat Huang
parent 581cb40c08
commit eb7338ba37
2 changed files with 0 additions and 33 deletions

View File

@@ -5,7 +5,6 @@ makeEnable config "myModules.desktop" true {
./fonts.nix
./hyprland.nix
./keyd.nix
./xremap.nix
];
assertions = [

View File

@@ -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";
};
};
}