aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/secrets/update_secrets.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-29 14:35:09 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-29 14:38:56 +0200
commita5d3beece5fe71c53bb4150ae8a4e422efebacf7 (patch)
tree7ac07fdb783239d62be1cec3139548db5980514e /modules/system/secrets/update_secrets.sh
parentfix(flake/devshell): Re-add `ragenix` and `rage` (diff)
downloadnixos-config-a5d3beece5fe71c53bb4150ae8a4e422efebacf7.zip
refactor(sys/secrets/lf_cdpaths): Add a `.age` fileextension
Diffstat (limited to 'modules/system/secrets/update_secrets.sh')
-rwxr-xr-xmodules/system/secrets/update_secrets.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/secrets/update_secrets.sh b/modules/system/secrets/update_secrets.sh
index 877d2892..f1c27d77 100755
--- a/modules/system/secrets/update_secrets.sh
+++ b/modules/system/secrets/update_secrets.sh
@@ -8,7 +8,7 @@ cleanup() {
trap cleanup EXIT
update_lf_cd_paths() {
- echo "Starting to update the lf/cd_paths file.."
+ echo "Starting to update the lf/cd_paths.age file.."
cd "$(git rev-parse --show-toplevel)/modules/system/secrets" || {
echo "A secrets dir does not exist! (This is most likely a bug)"
@@ -17,15 +17,15 @@ update_lf_cd_paths() {
key_file="$(mktemp)"
- nix eval -f ./secrets.nix --json | jq --raw-output '.["lf/cd_paths"].publicKeys | join("\n")' >"$key_file"
+ nix eval -f ./secrets.nix --json | jq --raw-output '.["lf/cd_paths.age"].publicKeys | join("\n")' >"$key_file"
# `lf-make-map` is provided by the dev shell
{
lf-make-map --quiet --depth 4 visualize ~/media ~/repos ~/school | sed 's|\(.*\)|# \1|'
lf-make-map --quiet --depth 4 generate ~/media ~/repos ~/school
- } | age --recipients-file "$key_file" --encrypt --armor --output ./lf/cd_paths
+ } | age --recipients-file "$key_file" --encrypt --armor --output ./lf/cd_paths.age
- echo "Finished updating the lf/cd_paths file.."
+ echo "Finished updating the lf/cd_paths.age file.."
}
main() {