From 5558ba3dde7b8c4b1c99a0dc086d8e61ea5dc60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Tue, 15 Oct 2024 17:10:25 +0300 Subject: [PATCH] Add key management tools to helium --- key-management.nix | 13 +++++++------ machine-confs/helium.nix | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/key-management.nix b/key-management.nix index ef866d0..aadef34 100644 --- a/key-management.nix +++ b/key-management.nix @@ -20,10 +20,11 @@ pinentryPackage = pkgs.pinentry-curses; }; - services.udev.extraRules = with pkgs; '' - ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1" - ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1" - 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" - ''; + hardware.onlykey.enable = true; + # services.udev.extraRules = with pkgs; '' + # ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1" + # ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1" + # 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" + # ''; } diff --git a/machine-confs/helium.nix b/machine-confs/helium.nix index 361150f..d9a5da9 100644 --- a/machine-confs/helium.nix +++ b/machine-confs/helium.nix @@ -69,7 +69,7 @@ ../users/vili.nix ../desktop.nix ../development.nix - # ../key-management.nix + ../key-management.nix ../services/syncthing.nix ../services/redshift.nix ../services/game-streaming.nix