Make sure permissions on .gnupg directory are correct

This commit is contained in:
Charlotte Van Petegem 2021-03-20 21:20:49 +01:00
parent 690d57b53b
commit afa2c88f6a
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -17,10 +17,11 @@
{ path = ".gnupg/trustdb.gpg"; type = "data"; }
];
config.programs.gnupg.agent.enable = true;
config.home-manager.users.charlotte = { pkgs, ... }: {
programs = {
gpg.enable = true;
};
config.home-manager.users.charlotte = { lib, ... }: {
home.activation.fixPermissionsCommands = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
chmod u=rwX,go= /home/charlotte/.gnupg
'';
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
defaultCacheTtl = 7200;