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, ... }: { lib, config, ... }: {
let
wallfacerTailscaleDomain = "wallfacer.curl-boga.ts.net";
in
{
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
@ -10,27 +6,13 @@ in
myModules = { myModules = {
enableKDE = false; enableKDE = false;
enableFonts = false; enableFonts = false;
# enableNextcloud = true; enableNextcloud = true;
enableHydra = true; enableHydra = true;
enableCaddy = true; # enableCaddy = true;
enableAttic = true; enableAttic = true;
enableCloudflared = 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.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
i18n.inputMethod.enable = lib.mkForce false; i18n.inputMethod.enable = lib.mkForce false;