gpg: add encrypt-to option to always encrypt to yourself
This commit is contained in:
parent
c077841ce5
commit
5622296281
1 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,8 @@ in {
|
|||
programs.gpg = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default-key = config.local.services.gpg.defaultKey;
|
||||
default-key = cfg.defaultKey;
|
||||
encrypt-to = cfg.defaultKey;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -46,14 +47,14 @@ in {
|
|||
gpg = {
|
||||
encryptByDefault = true;
|
||||
signByDefault = true;
|
||||
key = config.local.services.gpg.defaultKey;
|
||||
key = cfg.defaultKey;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
signing = {
|
||||
key = config.local.services.gpg.defaultKey;
|
||||
key = cfg.defaultKey;
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue