Work on sendmail to send emails

This commit is contained in:
2024-10-13 13:08:04 -04:00
parent 048ca07f4b
commit 91a0d4e71a
2 changed files with 79 additions and 0 deletions

View File

@@ -10,6 +10,17 @@
nixpkgs.config.allowUnfree = true;
environment.etc."msmtp-password" = {
enable = true;
user = "invoiceninja";
group = "invoiceninja";
mode = "0440";
text = ''
3t5h638t3a7y7275
'';
};
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
@@ -19,6 +30,16 @@
services.invoice-ninja = {
enable = true;
database.createLocally = true;
webserver.caddy.enable = true;
webserver.nginx.enable = false;
msmtp = {
tls = true;
from = "awkawb@awkawb.cloud";
host = "smtp.fastmail.com";
port = 465;
username = "awkawb@awkawb.cloud";
passwordeval = "cat /etc/msmtp-password";
};
secretFile = ./test-secrets.env;
};