24 lines
488 B
Nix
24 lines
488 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
program.ssh.client.enable = lib.mkEnableOption "enable SSH client configuration";
|
|
};
|
|
config = lib.mkIf config.program.ssh.client.enable {
|
|
programs.ssh = {
|
|
extraConfig = ''
|
|
Host masaoka
|
|
HostName 192.168.8.140
|
|
User foglar
|
|
IdentityFile ~/.ssh/id_masaoka
|
|
Host git
|
|
HostName git.hater.dev
|
|
User foglar
|
|
IdentityFile ~/.ssh/id_shinya3
|
|
'';
|
|
};
|
|
};
|
|
}
|