configurations for my servers and desktops
nix nixos flake dots dotfiles

feat: caddy

+10
+10
modules/nixos/services/ollama.nix
··· 1 1 {pkgs, ...}: { 2 + networking.firewall.allowedTCPPorts = [443]; 3 + 2 4 services.ollama = { 3 5 enable = true; 4 6 loadModels = ["deepseek-r1:latest" "deepseek-v2:latest" "qwen3-coder:latest" "qwen3-vl:latest" "qwen3:latest" "gemma3:latest" "nemotron-3-nano:latest" "functiongemma:latest" "olmo-3:latest" "gtp-oss:latest" "llama3:latest" "devstral-small-2:latest" "mistral:latest" "mistral-nemo:latest"]; ··· 22 24 autoStart = true; 23 25 }; 24 26 }; 27 + }; 28 + 29 + services.caddy = { 30 + enable = true; 31 + virtualHosts.":443".extraConfig = '' 32 + encode gzip zstd 33 + reverse_proxy 127.0.0.1:8080 34 + ''; 25 35 }; 26 36 }