Initial commit, working configuration

This commit is contained in:
jeirmeister 2025-07-18 10:54:05 -07:00
commit 4327e30ed4
4 changed files with 236 additions and 0 deletions

20
justfile Normal file
View file

@ -0,0 +1,20 @@
# Variables
REMOTE_HOST := "root@10.1.1.163"
# Default command
default:
@echo "BTCPay Server deployment commands:"
@echo " just build - Build configuration"
@echo " just deploy - Deploy to remote server"
# Build the configuration
build:
NIX_CONFIG="experimental-features = nix-command flakes" nix build .#nixosConfigurations.btcpay.config.system.build.toplevel
# Deploy to remote server
deploy:
NIX_CONFIG="experimental-features = nix-command flakes" nixos-rebuild switch --flake .#btcpay --target-host {{REMOTE_HOST}} --option experimental-features "nix-command flakes"
# Check services status
status:
ssh {{REMOTE_HOST}} "systemctl status bitcoind btcpayserver"