2022-05-24 11:55:50 +02:00
|
|
|
_:
|
|
|
|
|
2022-05-24 16:44:17 +02:00
|
|
|
let
|
|
|
|
oldKey = "~/.ssh/id_rsa";
|
|
|
|
newKey = "~/.ssh/id_ed25519";
|
|
|
|
|
|
|
|
in {
|
2022-05-24 11:55:50 +02:00
|
|
|
enable = true;
|
2022-05-24 16:44:17 +02:00
|
|
|
matchBlocks = {
|
|
|
|
|
|
|
|
"github.com" = {
|
|
|
|
user = "git";
|
|
|
|
hostname = "github.com";
|
|
|
|
identityFile = "${newKey}";
|
|
|
|
};
|
|
|
|
|
|
|
|
} // import ./ssh-match-blocks.nix {
|
|
|
|
inherit oldKey newKey;
|
2022-05-24 11:55:50 +02:00
|
|
|
};
|
|
|
|
}
|