about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorIvan Mincik <ivan.mincik@gmail.com>2023-11-25 19:14:10 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-26 11:42:35 +0000
commited624ca2d3799a65b20bf2df0c10be505dbaa298 (patch)
treed67b1ee8b2b5ff0ca839d770037d96a228cd9349 /nixos
parent2acca4b40387ea4920b040c2607bd387d11631a1 (diff)
nixos/tmate-ssh-server: fix tmate-client-config script
(cherry picked from commit df254b2dd23b77a4da7f9e338becbf19bd829594)
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/tmate-ssh-server.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/tmate-ssh-server.nix b/nixos/modules/services/networking/tmate-ssh-server.nix
index ff4ce0773309f..91cb79ae24793 100644
--- a/nixos/modules/services/networking/tmate-ssh-server.nix
+++ b/nixos/modules/services/networking/tmate-ssh-server.nix
@@ -81,12 +81,12 @@ in
       [
         (pkgs.writeShellApplication {
           name = "tmate-client-config";
-          runtimeInputs = with pkgs;[ openssh coreutils sd ];
+          runtimeInputs = with pkgs;[ openssh coreutils ];
           text = ''
             RSA_SIG="$(ssh-keygen -l -E SHA256 -f "${keysDir}/ssh_host_rsa_key.pub" | cut -d ' ' -f 2)"
             ED25519_SIG="$(ssh-keygen -l -E SHA256 -f "${keysDir}/ssh_host_ed25519_key.pub" | cut -d ' ' -f 2)"
-            sd -sp '@ed25519_fingerprint@' "$ED25519_SIG" ${tmate-config} | \
-              sd -sp '@rsa_fingerprint@' "$RSA_SIG"
+            sed "s|@ed25519_fingerprint@|$ED25519_SIG|g" ${tmate-config} | \
+              sed "s|@rsa_fingerprint@|$RSA_SIG|g"
           '';
         })
       ];