Skip to content

Commit 09f8d4d

Browse files
committed
nixos conf
1 parent 9d276c7 commit 09f8d4d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

default.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
let
4+
lib = import <nixpkgs/lib>;
5+
buildNodeJs = pkgs.callPackage <nixpkgs/pkgs/development/web/nodejs/nodejs.nix> {
6+
python = pkgs.python3;
7+
};
8+
9+
nodejsVersion = lib.fileContents ~/.nvmrc;
10+
11+
nodejs = buildNodeJs {
12+
enableNpm = true;
13+
version = nodejsVersion;
14+
sha256 = "g+AzgeJx8aVhkYjnrqnYXZt+EvW+KijOt41ySe0it/E=";
15+
};
16+
17+
in pkgs.mkShell {
18+
packages = with pkgs; [
19+
python3
20+
deno
21+
nodejs
22+
nodePackages.npm
23+
nodePackages.typescript
24+
];
25+
}

0 commit comments

Comments
 (0)