gpg: create homedir with 700 permissions#2823
Conversation
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand. Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions.
d5d222d to
da6e43b
Compare
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand. Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions.
|
I'm fairly certain this commit broke I have to set |
|
@dhess |
|
No, and I never have. |
|
If you set a value for this option, does it solve the issue? IRRC the edit: I have this in my own config: # Fix xdg.{dataHome,cacheHome} being empty in home-manager
users.users.nicolas = {
home = "/Users/nicolas";
isHidden = false;
shell = pkgs.zsh;
}; |
|
Thanks, I'll try that. It's odd that I've never had that set explicitly (nor |
|
Was your |
I don't understand your question. Since long before this change, I have configured |
Thanks, that fixed the issue. |
|
Is there a particular reason why this has not been backported to release-21.11? |
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand. Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions. (cherry picked from commit 399a3df)
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand. Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions.
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand. Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions.
It can happen in some cases that home-manager first runs before gpg creates its homedir, and it creates it with 755 permissions which the user then needs to change by hand.
Do this in the module instead: before linking files, make sure the homedir exists, and if it doesn't, create it with the right permissions.
We might drop the
mkMergeif #2822 gets merged first. (EDIT: done)Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.