feat: Change flake to zola

This commit is contained in:
PapaTutuWawa 2024-01-10 22:38:53 +01:00
parent 0e1ed09bee
commit b8a4c87abc

View File

@ -14,28 +14,17 @@
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.attrsets.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.attrsets.genAttrs supportedSystems;
in { in {
packages = forAllSystems (system: let devShell = forAllSystems (system: let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
tailwindWithTypography = pkgs.nodePackages.tailwindcss.overrideAttrs (old: { tailwindWithTypography = pkgs.nodePackages.tailwindcss.overrideAttrs (old: {
plugins = [ plugins = [
pkgs.nodePackages."@tailwindcss/typography" pkgs.nodePackages."@tailwindcss/typography"
]; ];
}); });
in {
default = pkgs.callPackage ./pkgs/website.nix {
shared-assets = assets.packages.${system}.default;
inherit tailwindWithTypography;
};
});
devShell = forAllSystems (system: let
pkgs = import nixpkgs { inherit system; };
pythonEnv = pkgs.python3.withPackages (ps: with ps; [ markdown ]);
in pkgs.mkShell { in pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
pythonEnv tailwindWithTypography zola
]; ];
}); });
}; };