Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
chore: add flake
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Feb 11, 2024
1 parent 164df09 commit ca42f4c
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 7 deletions.
27 changes: 27 additions & 0 deletions flake.lock

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

35 changes: 35 additions & 0 deletions flake.nix
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
'';
};
};
}
7 changes: 0 additions & 7 deletions pnpm-lock.yaml

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

0 comments on commit ca42f4c

Please sign in to comment.