Daniel Siepmann
956ea506b8
Make public what is already known to the public. Also define keys in variables for easier maintenance. Some hostings still don't support ed.
21 lines
303 B
Nix
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;
|
|
};
|
|
}
|