From 95c105367cffbfb7f3d82925b2773ea64944e8ec Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 8 Jul 2023 01:31:34 +0000 Subject: [PATCH] ~/.ssh/id_ed25519: correctly persist as a file -- not a directory --- hosts/common/home/ssh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/common/home/ssh.nix b/hosts/common/home/ssh.nix index c8b5c218..ad486997 100644 --- a/hosts/common/home/ssh.nix +++ b/hosts/common/home/ssh.nix @@ -14,7 +14,9 @@ let in { # ssh key is stored in private storage - sane.user.persist.private = [ ".ssh/id_ed25519" ]; + sane.user.persist.private = [ + { type = "file"; path = ".ssh/id_ed25519"; } + ]; sane.user.fs.".ssh/id_ed25519.pub" = mkIf (user-pubkey != null) (sane-lib.fs.wantedText user-pubkey); sane.user.fs.".ssh/known_hosts" = sane-lib.fs.wantedText known-hosts-text;