Skip to content

Commit

Permalink
chore: update and simplify flake (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb authored Mar 25, 2024
1 parent 2e0c304 commit bec42e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 233 deletions.
225 changes: 8 additions & 217 deletions flake.lock

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

28 changes: 12 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,25 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
devenv.url = "github:cachix/devenv";
};

outputs = { self, nixpkgs, utils, devenv, ... } @ inputs:
outputs = { self, nixpkgs, utils, ... } @ inputs:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.outputs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
};
in
{
devShell = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({ pkgs, ... }: {
packages = with pkgs; [
nodePackages.pnpm
];
languages.javascript = {
enable = true;
corepack.enable = true;
};
languages.typescript.enable = true;
})
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nodejs-slim
nodePackages.pnpm
typescript
];
shellHook = ''
set -a; source .env; set+a
'';
};
});
}

0 comments on commit bec42e0

Please sign in to comment.