Install with Nix
Build and run LNbits reproducibly using Nix flakes.
LNbits can be installed using Nix for reproducible builds.
Using nix develop
bash
git clone https://github.com/lnbits/lnbits.git
cd lnbits
# Enter the development shell
nix develop
# Copy config
cp .env.example .env
# Run
lnbitsNixOS module
If you're running NixOS, you can use a NixOS module to declaratively configure LNbits as a system service. Check the LNbits GitHub for the latest flake configuration.
Updating
bash
cd lnbits
git pull --rebase
nix buildFor NixOS module users, update your flake input and rebuild:
bash
nix flake update
sudo nixos-rebuild switchAfter updating, use Admin UI → Extensions → "Update All" to update extensions.
Next steps
- Configuration - customize your instance
- Funding sources - connect a Lightning backend
Related Pages
- Installation Overview - all installation methods
- Docker - container-based deployment
- Updating LNbits - keep LNbits up to date