About to make change to fixing the postgres nbxplorer configuration, have to take a pause to this to get back to helm project.

This commit is contained in:
jeirmeister 2025-07-22 00:50:22 -07:00
parent 11c5cd382e
commit f55936312f
6 changed files with 85 additions and 35 deletions

View file

@ -1,20 +1,22 @@
# 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
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"
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"
encrypt-secrets:
sops -e -i secrets.yaml
edit-secrets:
sops secrets.yaml
shell:
nix develop
psql:
psql -h localhost -U nbxplorer -d nbxplorer