From a5d3beece5fe71c53bb4150ae8a4e422efebacf7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 29 Sep 2024 14:35:09 +0200 Subject: refactor(sys/secrets/lf_cdpaths): Add a `.age` fileextension --- modules/system/secrets/update_secrets.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/system/secrets/update_secrets.sh') 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() { -- cgit 1.4.1