@@ -156,7 +156,7 @@ in
|
||||
];
|
||||
|
||||
virtualisation.quadlet = {
|
||||
networks.nextcloud.networkConfig.internal = true;
|
||||
networks.nextcloud = { };
|
||||
|
||||
volumes = {
|
||||
nextcloud-postgresql = { };
|
||||
@@ -173,21 +173,26 @@ in
|
||||
networks.nextcloud.ref
|
||||
networks.traefik.ref
|
||||
];
|
||||
volumes = [
|
||||
"/mnt/storage/private/storm/containers/storage/volumes/nextcloud-data/_data:/var/lib/nextcloud"
|
||||
"${volumes.nextcloud-log.ref}:/var/log/nextcloud"
|
||||
"${volumes.nextcloud-config.ref}:/var/www/nextcloud/config"
|
||||
"${volumes.nextcloud-apps.ref}:/var/www/nextcloud/apps"
|
||||
"${hmConfig.sops.templates.nextcloud.path}:/var/www/nextcloud/config/override.config.php:ro"
|
||||
];
|
||||
volumes =
|
||||
let
|
||||
post-setup = pkgs.writeTextFile {
|
||||
name = "post-setup.sh";
|
||||
executable = true;
|
||||
text = builtins.readFile ./post-setup.sh;
|
||||
};
|
||||
in
|
||||
[
|
||||
"${post-setup}:/etc/nextcloud/post-setup.sh:ro"
|
||||
"/mnt/storage/private/storm/containers/storage/volumes/nextcloud-data/_data:/var/lib/nextcloud"
|
||||
"${volumes.nextcloud-log.ref}:/var/log/nextcloud"
|
||||
"${volumes.nextcloud-config.ref}:/var/www/nextcloud/config"
|
||||
"${volumes.nextcloud-apps.ref}:/var/www/nextcloud/apps"
|
||||
"${hmConfig.sops.templates.nextcloud.path}:/var/www/nextcloud/config/override.config.php:ro"
|
||||
];
|
||||
environments = {
|
||||
POSTGRES_HOST = "nextcloud-postgresql";
|
||||
POSTGRES_DB = "nextcloud";
|
||||
POSTGRES_USER = "nextcloud";
|
||||
EXTRA_INIT = ''
|
||||
occ config:app:set core shareapi_allow_custom_tokens --value true --type boolean --no-interaction
|
||||
occ theming:config url https://cloud.karaolidis.com
|
||||
'';
|
||||
};
|
||||
environmentFiles = [ hmConfig.sops.templates.nextcloud-env.path ];
|
||||
labels = [
|
||||
|
@@ -0,0 +1,26 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
occ user:delete admin
|
||||
|
||||
occ app:disable \
|
||||
app_api \
|
||||
contactsinteraction \
|
||||
dashboard \
|
||||
federation \
|
||||
firstrunwizard \
|
||||
photos \
|
||||
recommendations \
|
||||
sharebymail \
|
||||
support \
|
||||
survey_client \
|
||||
user_status \
|
||||
weather_status
|
||||
|
||||
occ app:install \
|
||||
oidc_login
|
||||
|
||||
occ config:app:set \
|
||||
core shareapi_allow_custom_tokens --value true --type boolean --no-interaction
|
||||
|
||||
occ theming:config \
|
||||
url https://cloud.karaolidis.com
|
Reference in New Issue
Block a user