mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 20:20:43 +02:00
38 lines
739 B
Nix
38 lines
739 B
Nix
{ userConfig, ... }:
|
|
|
|
{
|
|
services.ssh-agent.enable = true;
|
|
services.ssh-agent.enableFishIntegration = true;
|
|
|
|
programs.ssh = {
|
|
enableDefaultConfig = false;
|
|
enable = true;
|
|
matchBlocks = {
|
|
"dmowski" = {
|
|
hostname = "192.168.0.30";
|
|
user = userConfig.username;
|
|
port = 22;
|
|
identityFile = "~/.ssh/dmowski";
|
|
};
|
|
|
|
"aur.archlinux.org" = {
|
|
user = userConfig.username;
|
|
identityFile = "~/.ssh/aur";
|
|
};
|
|
|
|
"github.com" = {
|
|
hostname = "github.com";
|
|
user = "git";
|
|
identityFile = "~/.ssh/github";
|
|
};
|
|
|
|
"*" = {
|
|
addKeysToAgent = "yes";
|
|
setEnv = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|