nix/programs/ssh.nix

29 lines
584 B
Nix
Raw Normal View History

2024-07-04 01:14:24 +02:00
{ ... }:
2024-06-15 21:59:32 +02:00
{
2024-07-04 01:14:24 +02:00
services.openssh.enable = true;
2024-06-15 21:59:32 +02:00
2024-07-04 01:14:24 +02:00
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";
};
2024-06-21 17:54:41 +02:00
};
};
2024-06-15 21:59:32 +02:00
};
}