Migrate nextcloud to sops-nix

This commit is contained in:
Fiona Grzebien 2026-05-24 01:09:56 +02:00
commit b5d6055f36
Signed by: fi
SSH key fingerprint: SHA256:HQgl5VGC4+Yw3ds/0I/DqTge63SPBXvXwhNG/gRW26U
3 changed files with 39 additions and 23 deletions

View file

@ -7,7 +7,7 @@
https = true;
config = {
dbtype = "pgsql";
adminpassFile = "/secrets/nextcloud-adminpass.secret";
adminpassFile = "/run/secrets/nextcloud-adminpass";
};
database.createLocally = true;
configureRedis = true;
@ -30,7 +30,7 @@
default_phone_region = "DE";
};
# Only contains mail_smtppassword
secretFile = "/secrets/nextcloud-secretfile.secret";
secretFile = "/run/secrets/nextcloud-secretfile";
phpOptions = {
# The amount of memory for interned strings in Mbytes
"opcache.interned_strings_buffer" = "64";
@ -50,4 +50,15 @@
'';
};
};
sops.secrets."nextcloud-adminpass" = {
mode = "0440";
owner = "nextcloud";
group = "nextcloud";
};
sops.secrets."nextcloud-secretfile" = {
mode = "0440";
owner = "nextcloud";
group = "nextcloud";
};
}