ssh: put gpg identity first, use pubkeys
This commit is contained in:
parent
6fb030837f
commit
429a6bf3e5
|
@ -31,17 +31,14 @@ in {
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
IdentitiesOnly yes
|
||||||
|
IdentityFile /home/${psCfg.user.name}/.ssh/id_yubi_gpg.pub
|
||||||
|
IdentityFile /home/${psCfg.user.name}/.ssh/id_ed25519_sk-464.pub
|
||||||
|
IdentityFile /home/${psCfg.user.name}/.ssh/id_ed25519_sk-485.pub
|
||||||
|
IdentityFile /home/${psCfg.user.name}/.ssh/id_nistp256-748.pub
|
||||||
|
'';
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"*" = {
|
|
||||||
identitiesOnly = true;
|
|
||||||
identityFile = [
|
|
||||||
"/home/${psCfg.user.name}/.ssh/id_yubi_gpg.pub"
|
|
||||||
"/home/${psCfg.user.name}/.ssh/id_ed25519_sk-464"
|
|
||||||
"/home/${psCfg.user.name}/.ssh/id_ed25519_sk-485"
|
|
||||||
"/home/${psCfg.user.name}/.ssh/id_nistp256-748.pub"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
"git.pub.solar" = {
|
"git.pub.solar" = {
|
||||||
user = "gitea";
|
user = "gitea";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue