Skip to content

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
lnbits

NixOS 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 build

For NixOS module users, update your flake input and rebuild:

bash
nix flake update
sudo nixos-rebuild switch

After updating, use Admin UI → Extensions → "Update All" to update extensions.

Next steps

News · Shop · SaaS · Telegram · Released under the MIT License.