feat: modular ssh config

This commit is contained in:
Ryan Yin
2023-12-24 21:09:16 +08:00
parent ac4f625768
commit 55e12cddaf
12 changed files with 98 additions and 52 deletions

View File

@@ -9,4 +9,17 @@
modules.desktop.i3 = {
nvidia = false;
};
programs.ssh = {
enable = true;
extraConfig = ''
Host github.com
Hostname github.com
# github is controlled by shoukei~
IdentityFile ~/.ssh/shoukei
# Specifies that ssh should only use the identity file explicitly configured above
# required to prevent sending default identity files first.
IdentitiesOnly yes
'';
};
}