initial commit
This commit is contained in:
17
configuration/nextcloud.nix
Normal file
17
configuration/nextcloud.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
hostName = "nextcloud.${config.domainName}";
|
||||
package = pkgs.nextcloud32;
|
||||
config.dbtype = "pgsql";
|
||||
database.createLocally = true;
|
||||
config.adminpassFile = config.sops.secrets."nextcloud/adminpass".path;
|
||||
};
|
||||
sops.secrets."nextcloud/adminpass" = {};
|
||||
security.acme.certs."${config.domainName}".extraDomainNames = [ config.services.nextcloud.hostName ];
|
||||
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
useACMEHost = config.domainName;
|
||||
addSSL = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user