Make sure permissions on .gnupg directory are correct
This commit is contained in:
parent
690d57b53b
commit
afa2c88f6a
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue