From d451bf23ff3e46f65956c7529583e34c00aac154 Mon Sep 17 00:00:00 2001 From: thedavidmeister Date: Tue, 7 Nov 2023 12:17:28 +0400 Subject: [PATCH] add flake --- README.md | 17 ----------------- flake.nix | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 flake.nix diff --git a/README.md b/README.md index b39eaad..e5b0a63 100644 --- a/README.md +++ b/README.md @@ -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//p2p/ -``` - -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. diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d953880 --- /dev/null +++ b/flake.nix @@ -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 { + + }; + } + ); +} \ No newline at end of file