~/.ssh/id_ed25519: correctly persist as a file -- not a directory

This commit is contained in:
Colin 2023-07-08 01:31:34 +00:00
parent 0a519eddb4
commit 95c105367c

View File

@ -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;