Make sure .gnupg exists before changing its permissions

This commit is contained in:
Charlotte Van Petegem 2021-03-22 13:40:26 +01:00
parent d03fe2a55a
commit 2808ce7436
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -19,6 +19,7 @@
config.programs.gnupg.agent.enable = true;
config.home-manager.users.charlotte = { lib, ... }: {
home.activation.fixPermissionsCommands = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p /home/charlotte/.gnupg
chmod u=rwX,go= /home/charlotte/.gnupg
'';
programs.gpg.enable = true;