html.nix/examples/site.nix

17 lines
419 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;
config = {
baseurl = "http://127.0.0.1:8080";
title = "test site";
};
2023-04-06 01:43:12 +03:00
});
in {
apps.site.program = "${siteServe}/bin/serve";
};
}