Skip to content

fort-nix/nixbitcoin.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5604407 · Mar 11, 2025
Jul 19, 2024
Dec 30, 2024
Aug 6, 2023
Dec 6, 2023
Jan 26, 2023
Mar 9, 2025
Dec 13, 2024
Mar 25, 2021
Feb 22, 2024
Dec 20, 2024
Dec 6, 2023
Mar 11, 2025
Mar 11, 2025
Mar 11, 2025
May 7, 2024
Jul 8, 2023
Jan 31, 2025
Nov 4, 2022
Nov 4, 2022

Repository files navigation

nix-bitcoin configuration for nixbitcoin.org

Highlights:

  • A proof of concept donation page (src) with payment methods:
  • Matrix Synapse homeserver (src) with email registrations via a self-hosted mailserver. Public registrations are now disabled due to disk storage demands which are out of scope for this project.

Requirements

Nix >= 2.9, with flakes enabled.

Usage

Run nix develop to enter a dev shell (defined in lib/dev-env.nix) which provides deployment and development commands (like running the node in a container or VM).

You can also directly run a command like so:

nix develop -c <cmd>
nix develop -c help
nix develop -c deploy

./run-test runs the test. Requires root permissions because the test starts a container.

Branches

Branch deployed always contains the configuration that is currently deployed.

Deployment

To increase deployment speed, add a ControlMaster to your nixbitcoin.org config in ~/.ssh/config:

Host nixbitcoin.org
# ...
ControlMaster auto
ControlPath /tmp/ssh-connection-%r@%k-%p
ControlPersist 5m

See also