treewide: Reformat project with alejandra

This commit is contained in:
Tristan Daniël Maat 2022-10-10 13:03:08 +01:00
parent 58e52dd119
commit 046a88905d
Signed by: tlater
GPG key ID: 49670FD774E43268
17 changed files with 405 additions and 353 deletions
configuration/services

View file

@ -1,15 +1,13 @@
{ config, ... }:
{
{config, ...}: {
virtualisation.pods.nextcloud = {
hostname = "nextcloud.tlater.net";
publish = [ "3001:80" ];
publish = ["3001:80"];
network = "slirp4netns";
containers = {
nextcloud = {
image = "nextcloud:fpm-alpine";
dependsOn = [ "postgres" ];
dependsOn = ["postgres"];
volumes = [
"nextcloud-root:/var/www/html"
"nextcloud-apps:/var/www/html/custom_apps"
@ -28,18 +26,18 @@
cron = {
image = "nextcloud:fpm-alpine";
entrypoint = "/cron.sh";
dependsOn = [ "postgres" "nextcloud" ];
extraOptions = [ "--volumes-from=nextcloud-nextcloud" ];
dependsOn = ["postgres" "nextcloud"];
extraOptions = ["--volumes-from=nextcloud-nextcloud"];
};
nginx = {
image = "nginx:alpine";
dependsOn = [ "nextcloud" ];
dependsOn = ["nextcloud"];
volumes = [
"nextcloud-root:/var/www/html:ro"
"${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro"
];
extraOptions = [ "--volumes-from=nextcloud-nextcloud" ];
extraOptions = ["--volumes-from=nextcloud-nextcloud"];
};
postgres = {
@ -48,7 +46,7 @@
POSTGRES_DB = "nextcloud";
POSTGRES_USER = "nextcloud";
};
volumes = [ "nextcloud-postgres-14:/var/lib/postgresql/data" ];
volumes = ["nextcloud-postgres-14:/var/lib/postgresql/data"];
};
};
};