Convert the nextcloud module into a container

This commit is contained in:
SebastianStork 2024-08-29 21:39:43 +02:00
parent 35f77628cc
commit f0295cd9e1
8 changed files with 170 additions and 134 deletions

View file

@ -0,0 +1,21 @@
{
systemd.tmpfiles.rules = [ "d /run/secrets/nextcloud/gmail-password 400 nextcloud nextcloud -" ];
services.nextcloud.settings = {
mail_smtpmode = "sendmail";
mail_sendmailmode = "pipe";
};
programs.msmtp = {
enable = true;
accounts.default = {
auth = true;
tls = true;
host = "smtp.gmail.com";
port = "587";
user = "nextcloud.stork";
from = "nextcloud.stork@gmail.com";
passwordeval = "cat /run/secrets/nextcloud/gmail-password";
};
};
}