Files
vps-nixos/scripts/edit-secrets.sh
T
aloslider 67b1571e28 Init
Initial commit, nodes are mostly done, panel is WIP
2026-11-17 10:47:39 +03:00

17 lines
344 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
root=$(cd "$(dirname "$0")/.." && pwd)
cd "$root"
source "$root/scripts/select-node.sh"
if [[ $# -ge 1 ]]; then
node=$1
else
node=$(select_node)
fi
SOPS_AGE_KEY_FILE=~/.config/sops/age/$node-key.txt \
sops --config ~/Projects/vps-nixos/.sops.yaml \
~/Projects/vps-nixos/hosts/$node/secrets.yaml