nixite/flake.nix

36 lines
737 B
Nix
Raw Normal View History

2023-12-30 18:27:23 +00:00
{
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;
};
};
}