https://git.jolheiser.com/infra.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
{ inputs, pkgs, config, ... }: let port = 6468; in { age.secrets.mint.file = ../secrets/mint.age; services = { mint = { enable = true; inherit port; settings = { MINT_LOG_LEVEL = "INFO"; }; environmentFile = config.age.secrets.mint.path; }; caddy.virtualHosts."budget.jolheiser.com".extraConfig = '' handle_path /static/* { root * ${inputs.mint.packages.${pkgs.stdenv.hostPlatform.system}.default}/lib/mint/static/ file_server } reverse_proxy localhost:${builtins.toString port} ''; }; }