Skip to content

Commit

Permalink
Node: add via nix
Browse files Browse the repository at this point in the history
  • Loading branch information
axelknock committed Apr 12, 2024
1 parent 62a4c3d commit 75fc61d
Show file tree
Hide file tree
Showing 6 changed files with 1,984 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/public/
/.direnv/
/node_modules/
76 changes: 76 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
systems.url = "github:nix-systems/default";
};

outputs = {
self,
nixpkgs,
flake-utils,
systems,
}:
flake-utils.lib.eachSystem (import systems)
(system: let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
nodejs_20
nodePackages.typescript-language-server
nodePackages.npm
nodePackages.tailwindcss
];
};
});
}
Loading

0 comments on commit 75fc61d

Please sign in to comment.