From d64f9c71f13ab82fbcc0ec4817e22851777cda44 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 10 Oct 2026 08:28:50 +0800 Subject: [PATCH] fix(typos): keep wluma's als key and fix a flagged typo The pre-commit hook runs typos with write = true, so the next edit to wluma.nix would silently rename wluma's ambient-light-sensor keys to also. --- .typos.toml | 5 +++++ modules/darwin/system.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.typos.toml b/.typos.toml index 327ca491..b7d82659 100644 --- a/.typos.toml +++ b/.typos.toml @@ -58,4 +58,9 @@ extend-ignore-re = [ # nixos-facter is the upstream hardware-report tool; the dictionary wants "factor". "facter", + + # wluma's ambient-light-sensor key (`als`, `als.iio`, `aop-sensors-als`); the + # checker wants `also`, and the pre-commit hook rewrites it. + "als", + "ALS", ] diff --git a/modules/darwin/system.nix b/modules/darwin/system.nix index 4722f01c..204ea63a 100644 --- a/modules/darwin/system.nix +++ b/modules/darwin/system.nix @@ -161,7 +161,7 @@ enableKeyMapping = true; # enable key mapping so that we can use `option` as `control` # NOTE: do NOT support remap capslock to both control and escape at the same time - remapCapsLockToControl = false; # remap caps lock to control, useful for emac users + remapCapsLockToControl = false; # remap caps lock to control, useful for Emacs users remapCapsLockToEscape = true; # remap caps lock to escape, useful for vim users # swap left command and left alt