ssh: use single 'poppy' key for all hosts (others don't exist yet)
This commit is contained in:
parent
ab376d21aa
commit
a689d23a8e
1 changed files with 11 additions and 11 deletions
22
home/ssh.nix
22
home/ssh.nix
|
|
@ -1,26 +1,26 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
# SSH client configuration with host-specific keys
|
# SSH client configuration
|
||||||
|
# TEMP: using single key 'poppy' for all hosts - create host-specific keys later
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
# Forgejo (personal) — port 2222
|
# All git forges use the same key for now
|
||||||
|
"git.*" = {
|
||||||
|
identityFile = "~/.ssh/poppy";
|
||||||
|
identitiesOnly = true;
|
||||||
|
addKeysToAgent = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Specific hosts (port override for forgejo)
|
||||||
"git.iscg.dev" = {
|
"git.iscg.dev" = {
|
||||||
identityFile = "~/.ssh/id_ed25519_forgejo";
|
identityFile = "~/.ssh/poppy";
|
||||||
port = 2222;
|
port = 2222;
|
||||||
identitiesOnly = true;
|
identitiesOnly = true;
|
||||||
addKeysToAgent = "yes";
|
addKeysToAgent = "yes";
|
||||||
};
|
};
|
||||||
|
|
||||||
# GitHub
|
|
||||||
"github.com" = {
|
|
||||||
identityFile = "~/.ssh/id_ed25519";
|
|
||||||
identitiesOnly = true;
|
|
||||||
addKeysToAgent = "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
# git.sol.moe
|
|
||||||
"git.sol.moe" = {
|
"git.sol.moe" = {
|
||||||
identityFile = "~/.ssh/poppy";
|
identityFile = "~/.ssh/poppy";
|
||||||
user = "mikl";
|
user = "mikl";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue