Updated release, modified justfile
This commit is contained in:
parent
7de19b46ec
commit
36513b42e9
2 changed files with 7 additions and 18 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
description = "BTCPay server, NBXplorer, Bitcoin Core, etc. as a NixOS system/container image";
|
description = "BTCPay server, NBXplorer, Bitcoin Core, etc. as a NixOS system/container image";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release-0.0.85"; # Pin to a stable release
|
nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release";
|
||||||
nixpkgs.follows = "nix-bitcoin/nixpkgs";
|
nixpkgs.follows = "nix-bitcoin/nixpkgs";
|
||||||
nixos-generators.url = "github:nix-community/nixos-generators";
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
|
||||||
23
justfile
23
justfile
|
|
@ -1,5 +1,5 @@
|
||||||
# Default command: lists all available just commands
|
# Default command: lists all available just commands
|
||||||
default:
|
_default:
|
||||||
just --list
|
just --list
|
||||||
|
|
||||||
# Rebuild the local NixOS system using a flake configuration
|
# Rebuild the local NixOS system using a flake configuration
|
||||||
|
|
@ -16,22 +16,11 @@ deploy host:
|
||||||
nixos-rebuild switch --fast --flake .#btc-pay-server --target-host {{host}} --build-host {{host}} --use-remote-sudo
|
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
|
# Check the status of bitcoind and btcpayserver services on the remote host
|
||||||
# Usage: just status root@10.1.1.163
|
|
||||||
status host:
|
status host:
|
||||||
ssh {{host}} "systemctl status bitcoind btcpayserver"
|
ssh {{host}} "systemctl status bitcoind btcpayserver"
|
||||||
|
|
||||||
# Encrypt the secrets.yaml file in place using sops
|
# Forcefully overwrite local with remote branch
|
||||||
encrypt-secrets:
|
force-git-pull:
|
||||||
sops -e -i secrets.yaml
|
git fetch origin
|
||||||
|
git reset --hard origin/main
|
||||||
# Open the secrets.yaml file for editing with sops
|
git clean -fd
|
||||||
edit-secrets:
|
|
||||||
sops secrets.yaml
|
|
||||||
|
|
||||||
# Open a developer shell with the nix flake's environment
|
|
||||||
shell:
|
|
||||||
nix develop
|
|
||||||
|
|
||||||
# Open a PostgreSQL client to the local nbxplorer database
|
|
||||||
psql:
|
|
||||||
psql -h localhost -U nbxplorer -d nbxplorer
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue