Preserve gpg directory.

This commit is contained in:
Tom Alexander
2024-12-20 16:50:27 -05:00
parent 20c1c46d12
commit 27060fed8d
5 changed files with 52 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
imports = [];
# Fetch public keys:
# gpg --locate-keys tom@fizz.buzz
#
# gpg -vvv --auto-key-locate local,wkd --locate-keys tom@fizz.buzz
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.persistence."/persist" = {
hideMounts = true;
users.talexander = {
directories = [
{ directory = ".gnupg"; user = "talexander"; group = "talexander"; mode = "0700"; } # Local keyring
];
};
};
}