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"; }
|
{ path = ".gnupg/trustdb.gpg"; type = "data"; }
|
||||||
];
|
];
|
||||||
config.programs.gnupg.agent.enable = true;
|
config.programs.gnupg.agent.enable = true;
|
||||||
config.home-manager.users.charlotte = { pkgs, ... }: {
|
config.home-manager.users.charlotte = { lib, ... }: {
|
||||||
programs = {
|
home.activation.fixPermissionsCommands = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
gpg.enable = true;
|
chmod u=rwX,go= /home/charlotte/.gnupg
|
||||||
};
|
'';
|
||||||
|
programs.gpg.enable = true;
|
||||||
services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultCacheTtl = 7200;
|
defaultCacheTtl = 7200;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue