Add custom site output attribute for flake

It is meant to be used for my other projects that will make use of the
site as a template like in the personal NixOS configuration site.
This commit is contained in:
Gabriel Arazas 2023-11-08 13:53:34 +08:00
parent 24dc07e399
commit 2f89659289
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -16,8 +16,16 @@
pkgs = nixpkgs.legacyPackages."${system}"; pkgs = nixpkgs.legacyPackages."${system}";
in in
{ {
packages.asciidoctor = with pkgs; writeShellScriptBin "asciidoctor" ''
asciidoctor -T ${self.site.asciidoctor-templates} $@
'';
devShells.default = import ./shell.nix { inherit pkgs; }; devShells.default = import ./shell.nix { inherit pkgs; };
formatter = pkgs.treefmt; formatter = pkgs.treefmt;
}); }) // {
site = {
asciidoctor-templates = ./templates;
assets = ./assets;
};
};
} }