html.nix/examples/site.nix

13 lines
321 B
Nix
Raw Normal View History

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