summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-12 19:50:06 +1000
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-12 19:50:06 +1000
commit10da26085e9164a3d72159e985000b4a9ca2da40 (patch)
tree015ba879684c20613a17582b87d7c736401a80e1
parent6b8273ed61f45253bf274c8712c9ded7aeeae5d9 (diff)
try this shit
-rw-r--r--kj-laptop01/configuration.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/kj-laptop01/configuration.nix b/kj-laptop01/configuration.nix
index ffe7dd2..354f688 100644
--- a/kj-laptop01/configuration.nix
+++ b/kj-laptop01/configuration.nix
@@ -110,9 +110,11 @@
programs.zsh.enable = true;
# Disable Alt+Left/Right virtual terminal switching
- console.keyMap = pkgs.writeText "disable-vt-switch.map" ''
- include "us"
- alt keycode 105 = noop
- alt keycode 106 = noop
+ console.keyMap = pkgs.runCommand "disable-vt-switch.map" {
+ nativeBuildInputs = [ pkgs.kbd ];
+ } ''
+ ${pkgs.kbd}/bin/dumpkeys ${pkgs.kbd}/share/keymaps/i386/qwerty/us.map.gz | \
+ sed 's/alt keycode 105 = Console_12/alt keycode 105 = noop/' | \
+ sed 's/alt keycode 106 = Console_18/alt keycode 106 = noop/' > $out
'';
}