feat(ami): set up msmtp to send email through forgejo later on
Currently not working as Hetzner is blocking the relevant ports.
This commit is contained in:
parent
df5c9fb1b3
commit
af533ec3bf
4 changed files with 28 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
./disk-config.nix
|
||||
./forgejo.nix
|
||||
./murmur.nix
|
||||
./msmtp.nix
|
||||
./website.nix
|
||||
|
||||
../../users/maintainer
|
||||
|
|
21
hosts/ami/msmtp.nix
Normal file
21
hosts/ami/msmtp.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{config, ...}: {
|
||||
age.secrets.msmtppassword = {
|
||||
file = ../../secrets/msmtppassword.age;
|
||||
mode = "770";
|
||||
owner = "forgejo";
|
||||
group = "forgejo";
|
||||
};
|
||||
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
accounts.default = {
|
||||
host = "smtp.fastmail.com";
|
||||
domain = "buffets.kitchen";
|
||||
tls = true;
|
||||
tls_starttls = false;
|
||||
auth = "plain";
|
||||
user = "mail@buffet.sh";
|
||||
passwordeval = "cat ${config.age.secrets.msmtppassword.path}";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,4 +3,5 @@ let
|
|||
in {
|
||||
"secrets/bitwarden.age".publicKeys = [buffet];
|
||||
"secrets/borgpassword.age".publicKeys = [buffet];
|
||||
"secrets/msmtppassword.age".publicKeys = [buffet];
|
||||
}
|
||||
|
|
5
secrets/msmtppassword.age
Normal file
5
secrets/msmtppassword.age
Normal file
|
@ -0,0 +1,5 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 zRvPWg jGsV1pjcJF/1DIYKxQuK8MVdtGb5j/AxUxPIgZkKPxo
|
||||
/kCfvNexkWL49MmZztpnt6FDOHqiVi7OVh5k4HDmhG0
|
||||
--- kHNbaMm2DRzSsCEPop4gXrKmBb/BSAG45xHeWyQfAkY
|
||||
Ç¿8Ë* v—˜§xèHòqê[êz˜&½ì¸zϯé½jÏŒŽ<C592>n,2±ã[™gø
|
Loading…
Reference in a new issue