diff --git a/modules/services/server/nextcloud.nix b/modules/services/server/nextcloud.nix new file mode 100644 index 0000000..4ec94c2 --- /dev/null +++ b/modules/services/server/nextcloud.nix @@ -0,0 +1,23 @@ + +{ pkgs, ... }: +{ + services.nextcloud = { + enable = true; + hostName = "cloud.kabtop.de"; + https = true; + config = { + dbtype = "pgsql"; + dbuser = "nextcloud"; + dbhost = "localhost"; + dbname = "nextclouddb"; + dbport = + adminuser = "kabbone"; + #adminpassFile = "secret123"; + }; + }; + + systemd.services."nextcloud-setup" = { + requires = ["postgresql.service"]; + after = ["postgresql.service"]; + }; +} diff --git a/modules/services/server/postgresql.nix b/modules/services/server/postgresql.nix index 605dab7..1428f6a 100644 --- a/modules/services/server/postgresql.nix +++ b/modules/services/server/postgresql.nix @@ -42,7 +42,7 @@ "telegramdb" "signaldb" "keycloakdb" - ] + ]; ensureUsers = [ { name = "gitea"; @@ -86,7 +86,7 @@ "DATABASE keycloakdb" = "ALL PRIVILEGES"; }; }; - ] + ]; }; services.postgreqlBackup.enable = true;