log keys locally

This commit is contained in:
2025-05-05 09:52:45 -05:00
parent b3aedc5ead
commit 02cf6110f2
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -195,7 +195,6 @@ in
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
hostKeys = [
+4
View File
@@ -45,6 +45,10 @@ function sops_generate_host_age_key() {
target_key="$1"
host_age_key=$(echo "$target_key" | ssh-to-age)
# temporary logging
echo "$target_key" >> log.txt
echo "$host_age_key" >> log.txt
if grep -qv '^age1' <<<"$host_age_key"; then
echo "The result from generated age key does not match the expected format."
echo "Result: $host_age_key"