install nextcloud

This commit is contained in:
nyanloutre 2024-05-14 17:39:29 +02:00
parent a6ce24d547
commit 3725e30663
2 changed files with 27 additions and 0 deletions

View File

@ -158,6 +158,11 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/var/lib/nextcloud" =
{ device = "loutrepool/var/nextcloud";
fsType = "zfs";
};
fileSystems."/var/lib/private/photoprism" = fileSystems."/var/lib/private/photoprism" =
{ device = "loutrepool/var/photoprism"; { device = "loutrepool/var/photoprism";
fsType = "zfs"; fsType = "zfs";

View File

@ -345,6 +345,10 @@ in
"challenge.amandoline-creations.fr" = base { "challenge.amandoline-creations.fr" = base {
"/".alias = "/var/www/amandoline-challenge/"; "/".alias = "/var/www/amandoline-challenge/";
}; };
${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
};
}; };
}; };
@ -381,6 +385,20 @@ in
# enable = true; # enable = true;
# package = pkgs.mariadb; # package = pkgs.mariadb;
# }; # };
nextcloud = {
enable = true;
package = pkgs.nextcloud29;
hostName = "cloud.nyanlout.re";
database.createLocally = true;
https = true;
maxUploadSize = "16G";
config = {
dbtype = "pgsql";
adminpassFile = "$CREDENTIALS_DIRECTORY/nextcloud_admin.pass";
};
};
}; };
systemd.services.nginx.serviceConfig = { systemd.services.nginx.serviceConfig = {
@ -397,6 +415,10 @@ in
]; ];
}; };
systemd.services.nextcloud-setup.serviceConfig = {
LoadCredential = "nextcloud_admin.pass:/mnt/secrets/nextcloud_admin.pass";
};
systemd.services.site-musique = let systemd.services.site-musique = let
djangoEnv =(pkgs.python3.withPackages (ps: with ps; [ gunicorn django_3 pillow setuptools ])); djangoEnv =(pkgs.python3.withPackages (ps: with ps; [ gunicorn django_3 pillow setuptools ]));
in { in {