Add yubikey touch indicator
This commit is contained in:
parent
2ca5e1fc48
commit
fd531d2f82
1 changed files with 25 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, pkgsUnstable, ... }:
|
||||
{ pkgs, pkgsUnstable, lib, ... }:
|
||||
{
|
||||
#TODO: ENV variabls for agent
|
||||
programs.gpg = {
|
||||
|
@ -56,4 +56,28 @@
|
|||
"638143D3F6421377E9D4C7F1D2EDC5AA0A860351" # 0x3E957C9C8CB5D6B2 / fabian.hauser@qo.is
|
||||
];
|
||||
};
|
||||
|
||||
systemd.user.sockets.yubikey-touch-detector = {
|
||||
Unit.Description = "Unix socket activation for YubiKey touch detector service";
|
||||
Socket = {
|
||||
ListenStream = "%t/yubikey-touch-detector.socket";
|
||||
RemoveOnStop = true;
|
||||
};
|
||||
Install.WantedBy = [ "sockets.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.yubikey-touch-detector = {
|
||||
Unit = {
|
||||
Description = "Detects when your YubiKey is waiting for a touch";
|
||||
Requires = "yubikey-touch-detector.socket";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${lib.getExe pkgs.yubikey-touch-detector} --libnotify";
|
||||
EnvironmentFile = "-%E/yubikey-touch-detector/service.conf";
|
||||
};
|
||||
Install = {
|
||||
Also = "yubikey-touch-detector.socket";
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue