# 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"