Massive rework to rebase on hexchen's new nixfiles deploy stuffs.

This commit is contained in:
kat witch 2021-01-24 21:37:41 +00:00 committed by kat
parent 6eac632061
commit f2eb255ba5
62 changed files with 990 additions and 846 deletions

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
systemd.services."nextcloud-setup" = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
services.nextcloud = {
enable = true;
hostName = "fs.dork.dev";
https = true;
nginx.enable = true;
config = {
dbtype = "pgsql";
dbuser = "nextcloud";
dbhost = "/run/postgresql";
dbname = "nextcloud";
adminpassFile =
"/var/lib/nextcloud/admin_pass"; # TODO replace this with proper secrets management
adminuser = "root";
};
};
}