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:
parent
90b5f5b6d0
commit
956ea506b8
Binary file not shown.
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue