summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-12 19:44:01 +1000
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-12 19:44:01 +1000
commit6b8273ed61f45253bf274c8712c9ded7aeeae5d9 (patch)
tree63b24c832483341245841747a0c6ada7d9e5e691
parenta8c14387285310407796fbf45dc490bf7534d173 (diff)
really disable vty
-rw-r--r--kj-laptop01/configuration.nix22
1 files changed, 2 insertions, 20 deletions
diff --git a/kj-laptop01/configuration.nix b/kj-laptop01/configuration.nix
index 3ea33f9..ffe7dd2 100644
--- a/kj-laptop01/configuration.nix
+++ b/kj-laptop01/configuration.nix
@@ -110,27 +110,9 @@
programs.zsh.enable = true;
# Disable Alt+Left/Right virtual terminal switching
- console.keyMap = "us";
- environment.etc."vconsole.conf".text = ''
- KEYMAP=us
- '';
-
- # Create custom keymap that disables Alt+Arrow VT switching
- environment.etc."kbd/keymaps/disable-vt-switch.map".text = ''
+ console.keyMap = pkgs.writeText "disable-vt-switch.map" ''
+ include "us"
alt keycode 105 = noop
alt keycode 106 = noop
'';
-
- systemd.services.disable-vt-switching = {
- description = "Disable VT switching on Alt+Arrow keys";
- wantedBy = [ "multi-user.target" ];
- after = [ "systemd-vconsole-setup.service" ];
- script = ''
- ${pkgs.kbd}/bin/loadkeys /etc/kbd/keymaps/disable-vt-switch.map
- '';
- serviceConfig = {
- Type = "oneshot";
- RemainAfterExit = true;
- };
- };
}