# Default command: lists all available just commands _default: just --list # Rebuild the local NixOS system using a flake configuration rebuild: nixos-rebuild switch --flake .#btc-pay-server # Build the NixOS system configuration without switching build: nix build .#nixosConfigurations.btc-pay-server.config.system.build.toplevel # Deploy (rebuild) the NixOS system on the remote host # Usage: just deploy root@10.1.1.163 deploy host: nixos-rebuild switch --fast --flake .#btc-pay-server --target-host {{host}} --build-host {{host}} --use-remote-sudo # Check the status of bitcoind and btcpayserver services on the remote host status host: ssh {{host}} "systemctl status bitcoind btcpayserver" # Forcefully overwrite local with remote branch force-git-pull: git fetch origin git reset --hard origin/main git clean -fd