began setting up git signing

This commit is contained in:
CDaut 2024-04-18 10:03:48 +02:00
parent 9ff9b824c6
commit fc0dcffc62
Signed by: clara
GPG key ID: 223391B52FAD4463
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
{
services.pcscd.enable = true;
programs.ssh.startAgent = false;
environment.systemPackages = with pkgs; [
yubikey-personalization
];
services.udev.packages = [ pkgs.yubikey-personalization ];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.shellInit = ''
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
'';
}