Improve onlykey conf

This commit is contained in:
Vili Sinervä 2024-10-15 20:31:40 +03:00
parent 9df3c02e55
commit c520b48320
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
3 changed files with 2 additions and 19 deletions

View file

@ -21,17 +21,10 @@
onlykey-agent
];
programs.ssh.startAgent = pkgs.lib.mkForce false; # TEMPORARY!
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
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;
}

View file

@ -81,12 +81,7 @@ in
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-curses;
};
services.udev.extraRules = ''
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", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
'';
hardware.onlykey.enable = true;
isoImage.squashfsCompression = "gzip -Xcompression-level 1";

View file

@ -15,9 +15,4 @@
};
users.groups.vili.gid = 1000;
programs.ssh = {
startAgent = true;
enableAskPassword = false;
};
}