Refactor ssh keys

Make public what is already known to the public.
Also define keys in variables for easier maintenance.

Some hostings still don't support ed.
This commit is contained in:
Daniel Siepmann 2022-05-24 16:44:17 +02:00
parent 90b5f5b6d0
commit 956ea506b8
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 15 additions and 2 deletions

Binary file not shown.

View file

@ -1,7 +1,20 @@
_:
{
let
oldKey = "~/.ssh/id_rsa";
newKey = "~/.ssh/id_ed25519";
in {
enable = true;
matchBlocks = import ./ssh-match-blocks.nix {
matchBlocks = {
"github.com" = {
user = "git";
hostname = "github.com";
identityFile = "${newKey}";
};
} // import ./ssh-match-blocks.nix {
inherit oldKey newKey;
};
}