l: enable o.xanf.org nextcloud

This commit is contained in:
lassulus 2019-01-04 16:35:09 +01:00
parent 58886abed9
commit 3090179491
2 changed files with 19 additions and 0 deletions

View File

@ -40,6 +40,11 @@
fsType = "zfs";
};
fileSystems."/var/lib/nextcloud" = {
device = "tank/nextcloud";
fsType = "zfs";
};
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View File

@ -88,6 +88,20 @@ in {
file_uploads = on
'';
services.nextcloud = {
enable = true;
hostName = "o.xanf.org";
config = {
adminpassFile = toString <secrets> + "/nextcloud_pw";
};
#https = true;
nginx.enable = true;
};
services.nginx.virtualHosts."o.xanf.org" = {
enableACME = true;
forceSSL = true;
};
# MAIL STUFF
# TODO: make into its own module
services.dovecot2 = {