Skip to content

Commit

Permalink
Add flake
Browse files Browse the repository at this point in the history
  • Loading branch information
sant0s12 committed Jun 4, 2024
1 parent 0b7df5c commit 825c4e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

18 changes: 15 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, flake-utils }:
outputs =
{
self,
nixpkgs,
flake-utils,
}:
let
overlays = [
(final: prev: rec {
Expand All @@ -14,14 +19,21 @@
})
];
in
flake-utils.lib.eachDefaultSystem (system:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit overlays system; };
in
{
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [ node2nix nodejs pnpm yarn ];
packages = with pkgs; [
node2nix
nodejs
pnpm
yarn
svelte-language-server
];
};
};
}
Expand Down

0 comments on commit 825c4e2

Please sign in to comment.