2023-04-11 18:00:21 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
2023-09-10 22:46:34 +02:00
|
|
|
|
|
|
|
home-manager.users.tdpeuter = {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = {
|
|
|
|
"H4G0" = {
|
|
|
|
hostname = "192.168.0.11";
|
|
|
|
identitiesOnly = true;
|
|
|
|
identityFile = "/run/secrets/H4G0/ssh";
|
|
|
|
user = "admin";
|
|
|
|
};
|
2023-09-11 12:49:47 +02:00
|
|
|
"github.com" = {
|
|
|
|
hostname = "github.com";
|
|
|
|
identitiesOnly = true;
|
|
|
|
identityFile = "/run/secrets/GitHub/ssh";
|
|
|
|
user = "tdpeuter";
|
|
|
|
};
|
2023-09-10 22:46:34 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-04-11 18:00:21 +02:00
|
|
|
}
|