diff --git a/modules/services/ssh.nix b/modules/services/ssh.nix index a60a9210..4617d550 100644 --- a/modules/services/ssh.nix +++ b/modules/services/ssh.nix @@ -90,7 +90,7 @@ in { } ${ if value.publicKey != null then - "IdentityFile ${pkgs.writeFile "${name}.pub" value.publicKey}" + "IdentityFile ${pkgs.writeText "${name}.pub" value.publicKey}" else "" } '') cfg.agent.hostAliases)}