This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
164df09
commit ca42f4c
Showing
3 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
description = "Ephemeral Nix Environment"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, ... }: | ||
let | ||
system = if builtins.currentSystem == "x86_64-darwin" then "x86_64-darwin" | ||
else if builtins.currentSystem == "aarch64-darwin" then "aarch64-darwin" | ||
else "x86_64-linux"; | ||
in | ||
{ | ||
devShells."${system}".default = | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
in | ||
pkgs.mkShell { | ||
# create an environment with nodejs_20, and pnpm | ||
packages = with pkgs; [ | ||
nodejs_20 | ||
nodePackages.pnpm | ||
nushell # BECAUSE I WANT NUSHELL | ||
]; | ||
|
||
shellHook = '' | ||
echo "node `${pkgs.nodejs}/bin/node --version`" | ||
exec nu | ||
''; | ||
}; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.