nixpkgs/home/programs/ssh.nix

27 lines
387 B
Nix
Raw Normal View History

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