html.nix/examples/site.nix
2023-04-06 05:43:25 +03:00

13 lines
321 B
Nix

topArgs: {
perSystem = {config, ...}: let
html-nix = config.html-nix.lib;
siteServe = html-nix.mkServeFromSite (html-nix.mkSiteFrom {
src = ./site;
templater = topArgs.config.html-nix.lib.templaters.simple;
local = true;
});
in {
apps.site.program = "${siteServe}/bin/serve";
};
}