Generate static files as part of the build process
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -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"; };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user