Add yubikey-touch-detector
This commit is contained in:
parent
e3fe689d4b
commit
237289130c
14
profiles/workspace/yubikey-touch-detector.nix
Normal file
14
profiles/workspace/yubikey-touch-detector.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
@ -36,5 +36,6 @@
|
||||
mopidy
|
||||
simple-osd-daemons
|
||||
sway
|
||||
yubikey-touch-detector
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user