feat(canokey): announce touch requests with a toast and a sound (#518)

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-11-06 10:22:09 +08:00
1 parent 1d7b06d163
commit a69ef122dc
4 files changed
+75 -3

No files matched your search

+11
View File
@@ -34,6 +34,17 @@ in
};
security.pam.services.sudo.u2f.enable = myvars.canokeyU2fKeys != [ ];
# A blink is easy to miss, so touch requests also raise a desktop
# notification. The package's service starts with graphical-session.target
# and sends through libnotify by default; Noctalia plays a sound for this
# sender only (home/linux/gui/base/noctalia/config/config.toml). Coverage
# and limits: docs/security-keys.md.
programs.yubikey-touch-detector.enable = true;
systemd.user.services.yubikey-touch-detector.environment = {
YUBIKEY_TOUCH_DETECTOR_NOTIFY_TITLE = "Security key: touch needed";
YUBIKEY_TOUCH_DETECTOR_NOTIFY_BODY = "Touch the security key to continue";
};
environment.systemPackages = with pkgs; [
ccid
pcsc-tools