nixite/flake.nix
2023-12-30 18:27:23 +00:00

36 lines
737 B
Nix

{
description = "A site in nix?";
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
nixite = import ./nixite/. {inherit pkgs;};
in {
packages.${system} = with nixite; {
# default = nixite.mkSite (nixite.layout (nixite.md.readMd ./src/index.md));
default = nixite.mkSite {
index =
html.toHTML
(
elems.doc
[
(elems.title "Nixite")
]
[
(elems.h 1 "Nixite")
(elems.main
(elems.p "hello"))
]
);
};
serve = nixite.serve self.packages.${system}.default;
};
};
}