Skip to content

Commit

Permalink
nixos conf
Browse files Browse the repository at this point in the history
  • Loading branch information
lazywithclass committed Jul 17, 2023
1 parent 9d276c7 commit 09f8d4d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ pkgs ? import <nixpkgs> {} }:

let
lib = import <nixpkgs/lib>;
buildNodeJs = pkgs.callPackage <nixpkgs/pkgs/development/web/nodejs/nodejs.nix> {
python = pkgs.python3;
};

nodejsVersion = lib.fileContents ~/.nvmrc;

nodejs = buildNodeJs {
enableNpm = true;
version = nodejsVersion;
sha256 = "g+AzgeJx8aVhkYjnrqnYXZt+EvW+KijOt41ySe0it/E=";
};

in pkgs.mkShell {
packages = with pkgs; [
python3
deno
nodejs
nodePackages.npm
nodePackages.typescript
];
}

0 comments on commit 09f8d4d

Please sign in to comment.