fix: supply different imap/smtp passwords depending on machine
This commit is contained in:
parent
7bce9ba144
commit
89903b6137
7 changed files with 19 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
hostName,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -41,7 +42,7 @@ in
|
|||
inherit host;
|
||||
};
|
||||
inherit address;
|
||||
passwordCommand = "cat ${config.age.secrets.protonmail-password.path}";
|
||||
passwordCommand = "cat ${config.age.secrets."protonmail-${hostName}-password".path}";
|
||||
primary = true;
|
||||
realName = "Will Holdsworth";
|
||||
smtp = {
|
||||
|
|
@ -55,13 +56,7 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
# keep-sorted start
|
||||
"protonmail-cert".file = ../../../secrets/protonmail-cert.age;
|
||||
"protonmail-password".file = ../../../secrets/protonmail-password.age;
|
||||
# keep-sorted end
|
||||
};
|
||||
age.secrets."protonmail-cert".file = ../../../secrets/protonmail-cert.age;
|
||||
};
|
||||
|
||||
imports = [ ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue