Add key management tools to helium

This commit is contained in:
Vili Sinervä 2024-10-15 17:10:25 +03:00
parent 1f98bdb855
commit 5558ba3dde
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 8 additions and 7 deletions

View file

@ -20,10 +20,11 @@
pinentryPackage = pkgs.pinentry-curses; pinentryPackage = pkgs.pinentry-curses;
}; };
services.udev.extraRules = with pkgs; '' hardware.onlykey.enable = true;
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1" # services.udev.extraRules = with pkgs; ''
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1" # ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="vili", RUN+="${onlykey-cli}/bin/onlykey-cli settime" # ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="vili", RUN+="${onlykey-cli}/bin/onlykey-cli settime" # SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="vili", RUN+="${onlykey-cli}/bin/onlykey-cli settime"
''; # KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="vili", RUN+="${onlykey-cli}/bin/onlykey-cli settime"
# '';
} }

View file

@ -69,7 +69,7 @@
../users/vili.nix ../users/vili.nix
../desktop.nix ../desktop.nix
../development.nix ../development.nix
# ../key-management.nix ../key-management.nix
../services/syncthing.nix ../services/syncthing.nix
../services/redshift.nix ../services/redshift.nix
../services/game-streaming.nix ../services/game-streaming.nix