Move role folder to defaults
This commit is contained in:
parent
ea23be5e80
commit
78f95b4e11
19 changed files with 17 additions and 16 deletions
4
defaults/nextcloud/README.adoc
Normal file
4
defaults/nextcloud/README.adoc
Normal file
|
@ -0,0 +1,4 @@
|
|||
== Nextcloud Role
|
||||
|
||||
This role manages the nextcloud installation.
|
||||
|
23
defaults/nextcloud/default.nix
Normal file
23
defaults/nextcloud/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue