services: initial nextcloud
This commit is contained in:
parent
08a4b3d96f
commit
e17934aaea
23
modules/services/server/nextcloud.nix
Normal file
23
modules/services/server/nextcloud.nix
Normal file
@ -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"];
|
||||||
|
};
|
||||||
|
}
|
@ -42,7 +42,7 @@
|
|||||||
"telegramdb"
|
"telegramdb"
|
||||||
"signaldb"
|
"signaldb"
|
||||||
"keycloakdb"
|
"keycloakdb"
|
||||||
]
|
];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "gitea";
|
name = "gitea";
|
||||||
@ -86,7 +86,7 @@
|
|||||||
"DATABASE keycloakdb" = "ALL PRIVILEGES";
|
"DATABASE keycloakdb" = "ALL PRIVILEGES";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
]
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgreqlBackup.enable = true;
|
services.postgreqlBackup.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user