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";
|
2023-02-19 21:49:59 -08:00
|
|
|
resume.url = "git+https://dev.danilafe.com/DanilaFe/resume";
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-02-19 21:49:59 -08:00
|
|
|
outputs = { self, blog-source, nixpkgs, flake-utils, katex-html, resume }:
|
2022-04-09 15:34:21 -07:00
|
|
|
let
|
2021-10-23 00:27:43 -07:00
|
|
|
buildersFor = system: import ./lib.nix {
|
2022-12-30 15:41:50 -08:00
|
|
|
inherit blog-source;
|
2021-10-23 00:27:43 -07:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2022-03-27 18:47:07 -07:00
|
|
|
katex-html = katex-html.defaultPackage.${system};
|
2023-02-19 21:49:59 -08:00
|
|
|
resume = resume.defaultPackage.${system};
|
2021-10-23 00:27:43 -07:00
|
|
|
};
|
2022-04-09 15:34:21 -07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit buildersFor;
|
|
|
|
nixosModule = (import ./module.nix);
|
|
|
|
} // flake-utils.lib.eachDefaultSystem (system: {
|
2022-12-30 15:41:50 -08:00
|
|
|
defaultPackage = (buildersFor system).english { host = "danilafe.com"; };
|
2022-04-09 15:34:21 -07:00
|
|
|
});
|
2021-10-21 23:00:13 -07:00
|
|
|
}
|