2021-10-21 23:00:13 -07:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2022-03-27 18:47:07 -07:00
|
|
|
katex-html.url = "git+https://dev.danilafe.com/Nix-Configs/katex-html";
|
2021-10-21 23:00:13 -07:00
|
|
|
blog-source = {
|
|
|
|
flake = false;
|
|
|
|
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
|
|
|
|
type = "git";
|
|
|
|
submodules = true;
|
|
|
|
};
|
|
|
|
blog-source-localized = {
|
|
|
|
flake = false;
|
|
|
|
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
|
|
|
|
ref = "localization";
|
|
|
|
type = "git";
|
|
|
|
submodules = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-03-27 18:47:07 -07:00
|
|
|
outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils, katex-html }:
|
2021-10-23 00:27:43 -07:00
|
|
|
{
|
|
|
|
buildersFor = system: import ./lib.nix {
|
|
|
|
inherit blog-source blog-source-localized;
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2022-03-27 18:47:07 -07:00
|
|
|
katex-html = katex-html.defaultPackage.${system};
|
2021-10-23 00:27:43 -07:00
|
|
|
};
|
2021-10-22 19:34:28 -07:00
|
|
|
nixosModule = (import ./module.nix);
|
2022-03-27 18:47:07 -07:00
|
|
|
packages.x86_64-linux.blog-debug = (import ./lib.nix {
|
|
|
|
inherit blog-source blog-source-localized;
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
|
|
katex-html = katex-html.defaultPackage."x86_64-linux";
|
|
|
|
}).english { host = "danilafe.com"; };
|
2021-10-22 19:34:28 -07:00
|
|
|
};
|
2021-10-21 23:00:13 -07:00
|
|
|
}
|