Upgrade to NixOS 26.05, Postgres 16 and Nextcloud 34
This commit is contained in:
+9
-6
@@ -87,9 +87,8 @@
|
||||
enable = true;
|
||||
hostName = "cloud.beffara.org";
|
||||
https = true;
|
||||
package = pkgs.nextcloud27;
|
||||
package = pkgs.nextcloud34;
|
||||
home = "/data/web/nextcloud";
|
||||
enableBrokenCiphersForSSE = false;
|
||||
|
||||
autoUpdateApps = {
|
||||
enable = true;
|
||||
@@ -97,16 +96,19 @@
|
||||
};
|
||||
|
||||
config = {
|
||||
overwriteProtocol = "https";
|
||||
dbtype = "pgsql";
|
||||
dbuser = "nextcloud";
|
||||
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
|
||||
dbname = "nextcloud";
|
||||
dbpassFile = "/data/web/nextcloud/db-pass";
|
||||
defaultPhoneRegion = "FR";
|
||||
adminpassFile = "/data/web/nextcloud/admin-pass";
|
||||
adminuser = "admin";
|
||||
};
|
||||
|
||||
settings = {
|
||||
overwriteprotocol = "https";
|
||||
default_phone_region = "FR";
|
||||
};
|
||||
};
|
||||
|
||||
# Ensure that postgres is running before setting up Nextcloud
|
||||
@@ -118,6 +120,7 @@
|
||||
# PostgreSQL database
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
ensureDatabases = [
|
||||
"gitea"
|
||||
"nextcloud"
|
||||
@@ -125,11 +128,11 @@
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "gitea";
|
||||
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user