mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-10 13:12:40 +00:00
nix lock and docs
This commit is contained in:
parent
bab7eb97de
commit
14cfb5cecb
|
@ -189,15 +189,16 @@ There is a `Makefile` with relevant commands (make sure you set the `MIX_ENV=pro
|
|||
|
||||
---
|
||||
|
||||
### Option C with nixos
|
||||
### Option C - with Nix
|
||||
|
||||
This repo is a Flake and includes a NixOS module.
|
||||
This repo is a Flake and includes a Nix module.
|
||||
|
||||
Here are the detailed steps to deploy it:
|
||||
|
||||
- run a recent version of Nix or NixOS: https://nixos.wiki
|
||||
- enable Flakes: https://nixos.wiki/wiki/Flakes#Installing_flakes
|
||||
- fetch and build the app and dependencies: `nix shell github:bonfire-networks/bonfire-app --command bonfire --version`
|
||||
- add `sandbox = false` in your nix.conf
|
||||
- fetch and build the app and dependencies: `nix run github:bonfire-networks/bonfire-app start_iex`
|
||||
- add it as an input to your system flake.
|
||||
- add an overlay to make the package available
|
||||
- add the required configuration in your system
|
||||
|
|
|
@ -70,11 +70,14 @@ For example if you want to run the `coordination` flavour:
|
|||
|
||||
### Option D - the experimental one (dev environment with Nix)
|
||||
|
||||
- run a recent version of Nix or NixOS: https://nixos.wiki
|
||||
- enable Flakes: https://nixos.wiki/wiki/Flakes#Installing_flakes
|
||||
- add `sandbox = false` in your nix.conf
|
||||
|
||||
If you use direnv, just cd in the directory and you will have all the dependencies.
|
||||
If you just have nix, running `nix shell .` (inside the repository) will set you up with a shell.
|
||||
|
||||
You will need to create and init the db directory (keeping all your Postgres data inside this directory).
|
||||
|
||||
You will need to create and init the db directory (keeping all your Postgres data inside this directory):
|
||||
- create the db directory `initdb ./db`
|
||||
- create the postgres user `createuser postgres -ds`
|
||||
- create the db `createdb bonfire_dev`
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1622253036,
|
||||
"narHash": "sha256-HSVusps0KHjVayUkWvFPiIZe1JKxT+GeDQBzcpw+MFE=",
|
||||
"lastModified": 1625375231,
|
||||
"narHash": "sha256-dbp2RRftypbAYad/xhDBBG0N7s1WQW+T4jazimvtvRo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "25bca77c48ddb0bacdb46e7398d948a348d06119",
|
||||
"rev": "8aff53d3cf23b5eb67c0ba9ba2392d694ade3930",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
Loading…
Reference in a new issue