flake/hosts/vultr/sin0/services/chicken-box.nix

19 lines
352 B
Nix
Raw Permalink Normal View History

2024-11-22 09:16:04 +00:00
{
lib,
inputs,
pkgs,
...
}:
let
pkgs' = inputs.chicken-box.packages.${pkgs.stdenv.hostPlatform.system};
in
{
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
match = lib.singleton { host = [ "cxk.ny4.dev" ]; };
handle = lib.singleton {
handler = "file_server";
root = pkgs'.default;
};
};
}