nixbld: store email account info in /etc/nixos/secret

This commit is contained in:
Sebastien Bourdeauducq 2019-09-19 09:44:34 +08:00
parent d28167badf
commit 099b7dee2a
1 changed files with 1 additions and 5 deletions

View File

@ -524,11 +524,7 @@ ACTION=="add", SUBSYSTEM=="tty", \
# Getting a proper reverse DNS record from ISP is difficult, so use whatever already exists. # Getting a proper reverse DNS record from ISP is difficult, so use whatever already exists.
fqdn = "42-200-147-171.static.imsbiz.com"; fqdn = "42-200-147-171.static.imsbiz.com";
domains = [ "nmigen.org" ]; domains = [ "nmigen.org" ];
loginAccounts = { loginAccounts = (import /etc/nixos/secret/email_accounts.nix);
"test@nmigen.org" = {
hashedPassword = "$6$P7VlskhRXIBUr$sjqBUw2Lp/7XuwaqZuZGwFToVzjJzWR/wBOMP4l6en4wsuooUyVBjpQLMNSgVSxiKsG4oatFZJQWykJVoRDM./";
};
};
certificateScheme = 3; certificateScheme = 3;
}; };
security.acme.certs."${config.mailserver.fqdn}".extraDomains = { security.acme.certs."${config.mailserver.fqdn}".extraDomains = {