about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2023-11-26 12:42:09 +0100
committerGitHub <noreply@github.com>2023-11-26 12:42:09 +0100
commitc6c20c63b4c1f715f602ecc46e21521e7825c2fb (patch)
tree8ef3ad547f8d61331b0894872d3733bfe6dd698f
parent173b74db07f26344f3517716edd4bff6987b512d (diff)
parentdf254b2dd23b77a4da7f9e338becbf19bd829594 (diff)
downloadnixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar.gz
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar.bz2
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar.lz
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar.xz
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.tar.zst
nixlib-c6c20c63b4c1f715f602ecc46e21521e7825c2fb.zip
Merge pull request #269954 from imincik/fix-tmate-ssh-server-module
nixos/tmate-ssh-server: fix tmate-client-config script
-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 ff4ce0773309..91cb79ae2479 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"
           '';
         })
       ];