add yubikey touch detector

This commit is contained in:
notgne2 2022-02-14 17:28:46 -07:00
parent 2ffff5270f
commit 6b62ba838a
Signed by: notgne2
GPG Key ID: 5CE0A245A2DAC84A

View File

@ -19,6 +19,18 @@ in
colors.enable = lib.mkDefault true; colors.enable = lib.mkDefault true;
fonts.enable = lib.mkDefault true; fonts.enable = lib.mkDefault true;
systemd.user.services.yubikey-touch-detector = {
Service = {
ExecStart = toString (pkgs.writeShellScript "yubikey-touch-detector-libnotify" ''
export SSH_AUTH_SOCK="$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)"
${pkgs.yubikey-touch-detector}/bin/yubikey-touch-detector -libnotify
'');
};
Install = rec {
WantedBy = [ "graphical-session.target" ];
};
};
programs.chromium.enable = lib.mkDefault true; programs.chromium.enable = lib.mkDefault true;
programs.firefox = { programs.firefox = {
enable = lib.mkDefault true; enable = lib.mkDefault true;