Generate static files as part of the build process

This commit is contained in:
2022-12-30 15:41:50 -08:00
parent 29e03c2732
commit e7615c4947
4 changed files with 30 additions and 64 deletions

View File

@@ -9,19 +9,12 @@
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;
};
};
outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils, katex-html }:
outputs = { self, blog-source, nixpkgs, flake-utils, katex-html }:
let
buildersFor = system: import ./lib.nix {
inherit blog-source blog-source-localized;
inherit blog-source;
pkgs = import nixpkgs { inherit system; };
katex-html = katex-html.defaultPackage.${system};
};
@@ -30,6 +23,6 @@
inherit buildersFor;
nixosModule = (import ./module.nix);
} // flake-utils.lib.eachDefaultSystem (system: {
defaultPackage = (buildersFor system).english { host = "danilafe.com"; };
defaultPackage = (buildersFor system).english { host = "danilafe.com"; };
});
}