Fix Nextcloud initialization

This commit is contained in:
inexcode 2022-08-10 15:09:44 +04:00
parent 8c81f24fa7
commit 52b896da45

View file

@ -23,6 +23,7 @@ in
{
nextcloudSecrets =
if cfg.nextcloud.enable then ''
mkdir -p /var/lib/nextcloud
cat /etc/nixos/userdata/userdata.json | ${jq} -r '.nextcloud.databasePassword' > /var/lib/nextcloud/db-pass
chmod 0440 /var/lib/nextcloud/db-pass
chown nextcloud:nextcloud /var/lib/nextcloud/db-pass