Minor re-jiggery
This commit is contained in:
parent
8114296098
commit
a1001a9112
|
@ -13,6 +13,7 @@
|
||||||
enable = true; # Enable Nextcloud
|
enable = true; # Enable Nextcloud
|
||||||
hostName = "cloud.mcwhirter.io"; # FQDN for the Nextcloud instance
|
hostName = "cloud.mcwhirter.io"; # FQDN for the Nextcloud instance
|
||||||
nginx.enable = true; # Whether to enable nginx virtual host management
|
nginx.enable = true; # Whether to enable nginx virtual host management
|
||||||
|
https = true; # Use HTTPS for links
|
||||||
config = { # Configure Nextcloud
|
config = { # Configure Nextcloud
|
||||||
dbtype = "pgsql"; # Set the database type
|
dbtype = "pgsql"; # Set the database type
|
||||||
dbname = "nextcloud"; # Set the database name
|
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"];
|
requires = ["postgresql.service"];
|
||||||
after = ["postgresql.service"];
|
after = ["postgresql.service"];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs = {
|
security.acme = {
|
||||||
"cloud.mcwhirter.io".email = "craige@mcwhirter.io";
|
acceptTerms = true;
|
||||||
|
certs = {
|
||||||
|
"cloud.mcwhirter.io" = {
|
||||||
|
email = "craige@mcwhirter.io";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.keys.members = [ "nextcloud" ]; # Required due to NixOps issue #1204
|
users.groups.keys.members = [ "nextcloud" ]; # Required due to NixOps issue #1204
|
||||||
|
|
Loading…
Reference in a new issue