Move role folder to defaults

This commit is contained in:
Fabian Hauser 2020-11-28 22:27:24 +00:00
parent ea23be5e80
commit 78f95b4e11
19 changed files with 17 additions and 16 deletions

View file

@ -0,0 +1,4 @@
== Nextcloud Role
This role manages the nextcloud installation.

View file

@ -0,0 +1,23 @@
# Default configuration for hosts
{ config, lib, pkgs, ... }:
{
services.nextcloud = {
enable = true;
https = true;
webfinger = true;
maxUploadSize = "1G";
config = {
adminpassFile = "/secrets/nextcloud-admin"; # TODO
adminuser = "root";
dbtype = "pgsql";
dbhost = "/run/postgresql";
};
};
systemd.services."nextcloud-setup" = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
}