enable nextcloud and disable caddy

This commit is contained in:
Osman Faruk Bayram 2025-07-30 17:05:19 +03:00
parent 8f70e53c61
commit f9d72d6c1a

View file

@ -1,8 +1,4 @@
{ lib, config, ... }:
let
wallfacerTailscaleDomain = "wallfacer.curl-boga.ts.net";
in
{
{ lib, config, ... }: {
imports = [
./hardware-configuration.nix
../../modules
@ -10,27 +6,13 @@ in
myModules = {
enableKDE = false;
enableFonts = false;
# enableNextcloud = true;
enableNextcloud = true;
enableHydra = true;
enableCaddy = true;
# enableCaddy = true;
enableAttic = true;
enableCloudflared = true;
};
services.caddy.virtualHosts = {
"${wallfacerTailscaleDomain}" = {
extraConfig = ''
handle_path /hydra/* {
reverse_proxy localhost:${toString config.services.hydra.port}
}
handle_path /nextcloud/* {
respond "Nextcloud is not configured yet. Please set up the service."
}
'';
};
};
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
i18n.inputMethod.enable = lib.mkForce false;