Skip to content

Commit

Permalink
chore: add flake.nix dev-env
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Sep 19, 2023
1 parent a9f9040 commit d8ddff1
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use flake

export DOCKER_HOST_IP=${DOCKER_HOST_IP:-127.0.0.1}
export NETWORK=regtest

Expand Down
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/
61 changes: 61 additions & 0 deletions flake.lock

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

47 changes: 47 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
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 d8ddff1

Please sign in to comment.