Minor re-jiggery

This commit is contained in:
Craige McWhirter 2020-08-10 21:34:39 +10:00
parent 8114296098
commit a1001a9112
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -13,6 +13,7 @@
enable = true; # Enable Nextcloud
hostName = "cloud.mcwhirter.io"; # FQDN for the Nextcloud instance
nginx.enable = true; # Whether to enable nginx virtual host management
https = true; # Use HTTPS for links
config = { # Configure Nextcloud
dbtype = "pgsql"; # Set the database type
dbname = "nextcloud"; # Set the database name
@ -59,13 +60,18 @@
};
};
systemd.services."nextcloud-setup" = {
systemd.services."nextcloud-setup" = { # Ensure PostgreSQL is running first
requires = ["postgresql.service"];
after = ["postgresql.service"];
};
security.acme.certs = {
"cloud.mcwhirter.io".email = "craige@mcwhirter.io";
security.acme = {
acceptTerms = true;
certs = {
"cloud.mcwhirter.io" = {
email = "craige@mcwhirter.io";
};
};
};
users.groups.keys.members = [ "nextcloud" ]; # Required due to NixOps issue #1204