html.nix/examples/site.nix

13 lines
292 B
Nix
Raw Normal View History

2022-07-30 12:42:09 +03:00
{
2023-04-06 01:43:12 +03:00
perSystem = {config, ...}: let
html-nix = config.html-nix;
siteServe = html-nix.mkServeFromSite (html-nix.mkSiteFrom {
src = ./site;
templater = html-nix.lib.templaters.basic;
local = true;
});
in {
apps.site.program = "${siteServe}/bin/serve";
};
}