Adding nextcloud
This commit is contained in:
parent
d2a132bf0a
commit
7893349400
6 changed files with 66 additions and 0 deletions
48
modules/server/baba/default.nix
Normal file
48
modules/server/baba/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud32;
|
||||
hostName = "cloud.lyes.eu";
|
||||
https = true;
|
||||
configureRedis = true;
|
||||
maxUploadSize = "10G";
|
||||
|
||||
extraAppsEnable = true;
|
||||
extraApps = {
|
||||
inherit (pkgs.nextcloud32Packages.apps) mail calendar contacts user_oidc notes richdocuments tasks;
|
||||
};
|
||||
|
||||
config = {
|
||||
dbtype = "pgsql";
|
||||
dbuser = "baba";
|
||||
dbname = "baba";
|
||||
dbpassFile = config.age.secrets.path;
|
||||
adminpassFile = config.age.secrets.path;
|
||||
};
|
||||
|
||||
phpOptions = {
|
||||
"opcache.interned_strings_buffer" = "32";
|
||||
"opcache.memory_consumption" = "512";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
baba-db-pass = {
|
||||
file = ../../../secrets/zora/services/baba-db-pass.age;
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
baba-admin-pass = {
|
||||
file = ../../../secrets/zora/services/baba-admin-pass.age;
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue