about summary refs log tree commit diff stats
path: root/modules/system/secrets/update_secrets.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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() {