tweak gpg related code

This commit is contained in:
steveej 2025-04-05 21:33:13 +02:00
parent ff279090e5
commit eebb87ff14
4 changed files with 14 additions and 5 deletions

View file

@ -105,7 +105,7 @@ in
# Password Management
gnupg
# yubikey-manager
yubikey-manager
yubikey-personalization
yubikey-personalization-gui

View file

@ -1,11 +1,11 @@
{ lib, pkgs, ... }:
{ lib, pkgs, osConfig, ... }:
{
home.packages = [ pkgs.gcr ];
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableScDaemon = true;
enableScDaemon = !osConfig.services.pcscd.enable;
enableSshSupport = true;
grabKeyboardAndMouse = true;
pinentryPackage = lib.mkDefault pkgs.pinentry-gtk2;

View file

@ -161,6 +161,11 @@
];
}
{
# yubikey / smartcard. only set to `true` for `ykman piv` commands.
services.pcscd.enable = false;
}
# TODO: create syncthing os snippet
(
let