Skip to content

Commit

Permalink
add flake
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Nov 7, 2023
1 parent c48b769 commit d451bf2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,6 @@ Run `gl-config-edit` in nix shell to setup config for your environment.

`GILDLAB_IPFS_NODE_CHANNEL` : Set the channel (github branch) to either `main` or `develop`. Default is `main` if not set.

#### Setup peerlist

Run `gl-peerlist-edit` in nix shell to setup the peerlist.
Each peer is simply a newline.

For ngrok peers each line will look like:

```
/dns/1.tcp.ngrok.io/tcp/<port>/p2p/<ipfs id>
```

Where your `port` can be found on the ngrok dashboard and your own `ipfs id` can be found by running `docker exec gl_ipfs ipfs id`.

Each peer on the same setup can run the same commands to tell you their ipfs id and ngrok tcp port.

You can also share peerlists in telegram, etc.

#### (Re)start the docker

Run `gl-docker-start` in nix shell to (re)boot all the boxes.
Expand Down
20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
description = "Flake for development workflows.";

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

outputs = { self, nixpkgs, rain, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};

in rec {
packages = rec {

};
}
);
}

0 comments on commit d451bf2

Please sign in to comment.