35 lines
814 B
Nix
35 lines
814 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
# ncDomain = "${config.clan.core.vars.generators.vega-nextcloud.files.subdomain.value}.${config.networking.fqdn}";
|
|
ncDomain = "${config.networking.fqdn}";
|
|
in
|
|
{
|
|
clan.core.vars.generators.vega-nextcloud = {
|
|
files.subdomain.secret = false;
|
|
|
|
prompts = {
|
|
subdomain = {
|
|
persist = true;
|
|
type = "line";
|
|
description = "Sub-domain for Nextcloud app. Default:(cloud)";
|
|
};
|
|
};
|
|
|
|
script = ''cat $prompts/subdomain || echo -n "cloud" > $out/subdomain'';
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
|
|
services.nextcloud = {
|
|
hostName = ncDomain;
|
|
package = pkgs.nextcloud31;
|
|
};
|
|
# services.nginx.virtualHosts."${ncDomain}" = {
|
|
# # useACMEHost = "${config.networking.fqdn}";
|
|
# # forceSSL = true;
|
|
# };
|
|
}
|