Initial commit, working configuration
This commit is contained in:
commit
4327e30ed4
4 changed files with 236 additions and 0 deletions
20
justfile
Normal file
20
justfile
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue