[sops] change reproducible secrets file structure

This commit is contained in:
2025-02-22 19:10:44 +01:00
parent f4544b1b90
commit 21cb9ece11
4 changed files with 22 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ if [ ! -e flake.nix ]
done
fi
diskkey=$(sops -d machines/secrets/keys/itag/$HOSTNAME/disk.key)
diskkey=$(sops -d machines/$HOSTNAME/secrets/disk.key)
echo
if [ $# = 1 ]
@@ -37,4 +37,4 @@ else
echo "Usage: $0 <hostname> [ip]"
echo "If an IP is not provided, the hostname will be used as the IP address."
exit 1
fi
fi