diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix index d788db4..900c3cf 100644 --- a/flake.nix +++ b/flake.nix @@ -13,9 +13,15 @@ (system: let pkgs = nixpkgs.legacyPackages.${system}; + overlays = [ + (final: prev: rec { + nodejs = prev.nodejs-18_x; + bun = (prev.bun.override { inherit nodejs; }); + }) + ]; nativeBuildInputs = with pkgs; [ zola - nodePackages_latest.prettier + nodePackages.prettier fd brotli gzip @@ -45,11 +51,21 @@ website = packages.default; }; }; - devShell = pkgs.mkShell { - buildInputs = with pkgs; [ - caddy - flyctl - ] ++ nativeBuildInputs; + devShells = { + default = pkgs.mkShell { + packages = with pkgs; [ + node2nix + nodejs + ] ++ (with pkgs.nodePackages; [ + prettier + ]); + }; + ssg = pkgs.mkShell { + buildInputs = with pkgs; [ + caddy + flyctl + ] ++ nativeBuildInputs; + }; }; }); } |