Add yubikey-touch-detector

This commit is contained in:
Alexander Bantyev 2021-11-06 18:07:06 +03:00
parent e3fe689d4b
commit 237289130c
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }: {
home-manager.users.balsoft.systemd.user.services.yubikey-touch-detector = {
Service = {
Environment = [ "PATH=${lib.makeBinPath [ pkgs.gnupg pkgs.yubikey-touch-detector ]}" ];
ExecStart = toString (pkgs.writeShellScript "yubikey-touch-detector" ''
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
yubikey-touch-detector -libnotify
'');
};
Install = rec {
WantedBy = [ "graphical-session.target" ];
};
};
}

View File

@ -36,5 +36,6 @@
mopidy
simple-osd-daemons
sway
yubikey-touch-detector
];
}