Skip to content

Commit

Permalink
chore: add flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Sep 20, 2023
1 parent ac084d6 commit 64c69a2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ generated.gql
junit.xml

.next

.direnv
45 changes: 45 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
description = "Galoy dev environment";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
overlays = [
(self: super: {
nodejs = super.nodejs_20;
yarn = super.yarn.override {
nodejs = super.nodejs_20;
};
})
];
pkgs = import nixpkgs {inherit overlays system;};
nativeBuildInputs = with pkgs; [
nodejs
tilt
yarn
alejandra
gnumake
docker-compose
shellcheck
shfmt
vendir
jq
ytt
];
in
with pkgs; {
devShells.default = mkShell {
inherit nativeBuildInputs;
};

formatter = alejandra;
});
}

0 comments on commit 64c69a2

Please sign in to comment.