nixos-config/nixos/system/packages/ssh-client.nix

28 lines
612 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 hater
HostName git.hater.dev
User foglar
IdentityFile ~/.ssh/id_shinya3
Host homework
Hostname gitea.homework.zip
User shinya
IdentityFile ~/.ssh/id_github
'';
};
};
}