DEVELOPMENT ENVIRONMENT

~liljamo/liljamo-dev-zola

ref: aff5e729fa98f5d70f89849b77cd5269b13bcb6c liljamo-dev-zola/flake.nix -rw-r--r-- 736 bytes
aff5e729Jonni Liljamo feat: content structure defined, config changes 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

  outputs = { self, nixpkgs }: {
    devShells = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (system:
      let
        pkgs = nixpkgs.legacyPackages.${system}.pkgs;
        # https://github.com/NixOS/nixpkgs/blob/340a3345a23ad684a8c328eecc20bb0437e6954d/pkgs/development/haskell-modules/configuration-nix.nix#L1311
        tailwind = pkgs.nodePackages.tailwindcss.overrideAttrs
          (o: { plugins = [ pkgs.nodePackages."@tailwindcss/typography" ]; });
      in {
        default = pkgs.mkShell {
          buildInputs = [
            tailwind
            pkgs.zola
            pkgs.nodePackages."@tailwindcss/language-server"
          ];
        };
      });
  };
}