nixos/yubikey-touch-detector: init (#254947)
* nixos/yubikey-touch-detector: init * nixos/yubikey-touch-detector: enable user socket
This commit is contained in:
parent
2cd86bf59a
commit
e5d8baafcd
2 changed files with 22 additions and 0 deletions
|
@ -280,6 +280,7 @@
|
|||
./programs/xwayland.nix
|
||||
./programs/yabar.nix
|
||||
./programs/yazi.nix
|
||||
./programs/yubikey-touch-detector.nix
|
||||
./programs/zmap.nix
|
||||
./programs/zsh/oh-my-zsh.nix
|
||||
./programs/zsh/zsh-autoenv.nix
|
||||
|
|
21
nixos/modules/programs/yubikey-touch-detector.nix
Normal file
21
nixos/modules/programs/yubikey-touch-detector.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let cfg = config.programs.yubikey-touch-detector;
|
||||
in {
|
||||
options = {
|
||||
programs.yubikey-touch-detector = {
|
||||
enable = lib.mkEnableOption "yubikey-touch-detector";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.packages = [ pkgs.yubikey-touch-detector ];
|
||||
|
||||
systemd.user.services.yubikey-touch-detector = {
|
||||
path = [ pkgs.gnupg ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
systemd.user.sockets.yubikey-touch-detector = {
|
||||
wantedBy = [ "sockets.target" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue