re-organize home-modules

This commit is contained in:
2024-10-19 14:35:08 +02:00
parent f1d7b850fa
commit b95ebd8efc
52 changed files with 36 additions and 30 deletions

29
modules/home/yubikey.nix Normal file
View File

@@ -0,0 +1,29 @@
{
config,
pkgs,
...
}: {
programs.gpg = {
enable = true;
mutableKeys = false;
mutableTrust = false;
publicKeys = [
{
source = ../../static/keys/my_pub.asc;
trust = "ultimate";
}
];
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableZshIntegration = true;
pinentryPackage = pkgs.pinentry.qt;
extraConfig = ''
allow-emacs-pinentry
'';
};
home.sessionVariables = {
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
};
}