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