website/flake.nix

32 lines
777 B
Nix
Raw Permalink Normal View History

2022-05-14 15:23:19 +00:00
{
description = "The website hosted at https://polynom.me";
inputs = {
2023-07-17 15:01:11 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2022-05-14 15:23:19 +00:00
assets.url = "git+https://git.polynom.me/polynom.me/shared-assets.git";
};
outputs = {
self,
nixpkgs,
assets
}: let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.attrsets.genAttrs supportedSystems;
in {
2024-01-10 21:38:53 +00:00
devShell = forAllSystems (system: let
2022-05-14 15:23:19 +00:00
pkgs = import nixpkgs { inherit system; };
2023-07-17 15:01:11 +00:00
tailwindWithTypography = pkgs.nodePackages.tailwindcss.overrideAttrs (old: {
plugins = [
pkgs.nodePackages."@tailwindcss/typography"
];
});
in pkgs.mkShell {
buildInputs = with pkgs; [
2024-01-10 21:38:53 +00:00
tailwindWithTypography zola
];
});
2022-05-14 15:23:19 +00:00
};
}