mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:08:11 +09:00
fix
This commit is contained in:
@@ -32,6 +32,15 @@ in
|
|||||||
default = { };
|
default = { };
|
||||||
description = "SSH match blocks";
|
description = "SSH match blocks";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
githubIdentityFiles = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [
|
||||||
|
"~/.ssh/id_ed25519_sk_rk"
|
||||||
|
"~/.ssh/id_ed25519"
|
||||||
|
];
|
||||||
|
description = "SSH identity files for GitHub (tried in order)";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ in
|
|||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
|
|
||||||
settings = cfg.matchBlocks // {
|
settings = cfg.matchBlocks // {
|
||||||
|
"github.com" = {
|
||||||
|
IdentityFile = cfg.githubIdentityFiles;
|
||||||
|
IdentitiesOnly = true;
|
||||||
|
AddKeysToAgent = cfg.addKeysToAgent;
|
||||||
|
};
|
||||||
|
|
||||||
"*" = {
|
"*" = {
|
||||||
IdentityFile = cfg.defaultIdentityFile;
|
IdentityFile = cfg.defaultIdentityFile;
|
||||||
AddKeysToAgent = cfg.addKeysToAgent;
|
AddKeysToAgent = cfg.addKeysToAgent;
|
||||||
|
|||||||
Reference in New Issue
Block a user