feat: first nextcloud steps

This commit is contained in:
s-prechtl 2025-06-21 20:28:31 +02:00
parent 87d007696e
commit f38e737aea
3 changed files with 23 additions and 1 deletions

View file

@ -9,6 +9,7 @@
in {
imports = [
./hardware-configuration.nix
./nextcloud.nix
inputs.mms.module
];

View file

@ -0,0 +1,21 @@
{config}: {
# This is only a temporary password and will be changed
environment.etc."nextcloud-admin-pass".text = "samc";
services.nextcloud = {
enable = true;
hostName = "sprechtl.ddns.net";
https = true;
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
};
security.acme = {
acceptTerms = true;
certs = {
${config.services.nextcloud.hostName}.email = "stefan@tague.at";
};
};
}