blog-static-flake/flake.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-21 23:00:13 -07:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
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;
};
};
outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
blog = import ./default.nix {
inherit blog-source blog-source-localized pkgs;
};
in
{
packages = {
english = blog.english;
"drafts/russian" = blog.drafts.russian;
"drafts/english" = blog.drafts.english;
};
2021-10-21 23:00:13 -07:00
defaultPackage = blog.english;
}
2021-10-22 19:34:28 -07:00
) // {
nixosModule = (import ./module.nix);
};
2021-10-21 23:00:13 -07:00
}