diff options
author | Alan Pearce | 2023-09-15 19:35:23 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-15 19:35:23 +0200 |
commit | 6474b1db0a4f8bdf3c83acd329cf822a9f45f563 (patch) | |
tree | 598a1e3bdc25c4d6f75773925d83a46bbbe19859 /flake.nix | |
parent | c936c99fad7e090a3caaaa6bdd5fbaf38d39abba (diff) | |
parent | e718339d93e2f60b6df55330aafb2d9536820ce4 (diff) | |
download | website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.tar.lz website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.tar.zst website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.zip |
Merge homestead repository
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; + }; }; }); } |