# SPDX-FileCopyrightText: 2024 Maurice Debray # # SPDX-License-Identifier: EUPL-1.2 DECRYPT=() if [ -f "$HOME/.ssh/id_rsa" ]; then DECRYPT+=(-i "$HOME/.ssh/id_rsa") fi if [ -f "$HOME/.ssh/id_ed25519" ]; then DECRYPT+=(-i "$HOME/.ssh/id_ed25519") fi export RADIUS_SECRET=$(rage "${DECRYPT[@]}" -d ./machines/nixos/vault01/secrets/radius-ap-radius-secret_file)