nix/programs/ssh.nix
2024-07-04 01:14:24 +02:00

28 lines
584 B
Nix

{ ... }:
{
services.openssh.enable = true;
home-manager.users.krizej.programs.ssh = {
enable = true;
matchBlocks = {
"github.com" = {
user = "git";
identityFile = "~/.ssh/github";
};
"192.168.1.12" = {
identityFile = "~/.ssh/raspi";
};
"git.jacekpoz.pl" = {
user = "forgejo";
identityFile = "~/.ssh/jacekgit";
};
"zasadzka.pl" = {
user = "discord";
identityFile = "~/.ssh/zasadzka";
setEnv = {
"TERM" = "xterm-256color";
};
};
};
};
}