{ 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; }; }; }