This commit is contained in:
albert 2025-01-16 08:33:23 -08:00
parent a93c34405f
commit e2eaf98653
Signed by: albert
GPG key ID: 3895DD267CA11BA9
2 changed files with 7 additions and 2 deletions
nixos/common
services
software/cli/scripts

View file

@ -9,12 +9,12 @@ in {
# SSH key for btrfs-backups
sops.secrets."btrfs-backups/ssh_key" = {
sopsFile = ../../../../secrets/secrets.yaml;
sopsFile = ../../../secrets/secrets.yaml;
owner = "root";
};
sops.secrets."btrfs-backups/gotify_token" = {
sopsFile = ../../../../secrets/secrets.yaml;
sopsFile = ../../../secrets/secrets.yaml;
owner = "root";
};

View file

@ -102,6 +102,11 @@ if [ ! -r "/run/secrets/btrfs-backups/gotify_token" ]; then
echo "ERROR: Gotify token file not found or not readable at /run/secrets/btrfs-backups/gotify_token"
exit 1
fi
# Check if secrets file exists and is readable
if [ ! -r "/run/secrets/btrfs-backups/ssh_key" ]; then
echo "ERROR: SSH Key not found or not readable at /run/secrets/btrfs-backups/ssh_key"
exit 1
fi
# Gotify Configuration
GOTIFY_URL="https://gotify.sysctl.io"