mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-30 22:57:59 +00:00
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:
parent
24dc07e399
commit
2f89659289
10
flake.nix
10
flake.nix
@ -16,8 +16,16 @@
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
in
|
||||
{
|
||||
packages.asciidoctor = with pkgs; writeShellScriptBin "asciidoctor" ''
|
||||
asciidoctor -T ${self.site.asciidoctor-templates} $@
|
||||
'';
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
||||
formatter = pkgs.treefmt;
|
||||
});
|
||||
}) // {
|
||||
site = {
|
||||
asciidoctor-templates = ./templates;
|
||||
assets = ./assets;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user