server-config/services/graphing-calculator.nix

16 lines
295 B
Nix

{
service_configs,
inputs,
pkgs,
...
}:
let
graphing-calculator = inputs.ytbn-graphing-software.packages.${pkgs.system}.web;
in
{
services.caddy.virtualHosts."graphing.${service_configs.https.domain}".extraConfig = ''
root * ${graphing-calculator}
file_server browse
'';
}