nixpkgs/home/programs/ssh.nix
Daniel Siepmann 956ea506b8
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.
2022-05-24 16:44:17 +02:00

21 lines
303 B
Nix

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