@@ -23,6 +23,7 @@ for SOPS_FILE in $(find . -type f -name "sops.yaml"); do
|
||||
done
|
||||
|
||||
sed -i "/knownHosts = {/a\ ${HOST}.publicKeyFile = ../../../../${HOST}/secrets/ssh_host_ed25519_key.pub;" ./hosts/common/system/configs/ssh/default.nix
|
||||
sed -i "/userKnownHostsFile = lib.strings.concatStringsSep " " [/a\ \${../../../../../${HOST}/secrets/ssh_host_ed25519_key.pub}" ./hosts/common/user/configs/console/ssh/default.nix
|
||||
|
||||
"$(dirname "$0")/update-keys.sh" "$2"
|
||||
|
||||
|
@@ -18,7 +18,8 @@ for SOPS_FILE in $(find . -type f -name "sops.yaml"); do
|
||||
sed -i "/ - \*${HOST}/d" "${SOPS_FILE}"
|
||||
done
|
||||
|
||||
sed -i "/${HOST}.publicKeyFile/d" ./hosts/common/system/configs/ssh/default.nix
|
||||
sed -i "/${HOST}/d" ./hosts/common/system/configs/ssh/default.nix
|
||||
sed -i "/${HOST}/d" ./hosts/common/user/configs/console/ssh/default.nix
|
||||
|
||||
"$(dirname "$0")/update-keys.sh" "$2"
|
||||
|
||||
|
Reference in New Issue
Block a user