1
0
Fork 0
nixos/services/nextcloud.nix

30 lines
697 B
Nix
Raw Normal View History

{ config, lib, ... }:
2019-02-26 13:44:40 +01:00
with lib;
mkIf (elem "nextcloud" config.machine.services) {
2019-02-26 13:44:40 +01:00
services.nextcloud = {
enable = true;
home = "/var/lib/nextcloud";
hostName = "storage.${config.machine.domain}";
2019-02-26 13:44:40 +01:00
https = true;
maxUploadSize = "1024M";
config = {
adminuser = "derped";
adminpassFile = "${config.machine.secretPath}/nextcloud_admin";
2019-02-26 13:44:40 +01:00
dbtype = "mysql";
dbhost = "localhost";
dbport = "3306";
dbuser = "nextcloud";
dbpassFile = "${config.machine.secretPath}/nextcloud_db";
2019-02-26 13:44:40 +01:00
dbname = "nextcloud";
dbtableprefix = "oc_";
};
caching = {
apcu = true;
memcached = true;
redis = false;
};
};
}