2023-04-11 18:00:21 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-22 13:08:57 +02:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
2023-09-10 22:46:34 +02:00
|
|
|
home-manager.users.tdpeuter = {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = {
|
2023-10-01 18:34:05 +02:00
|
|
|
"Hugo" = {
|
2023-09-10 22:46:34 +02:00
|
|
|
hostname = "192.168.0.11";
|
|
|
|
identitiesOnly = true;
|
2023-10-01 18:34:05 +02:00
|
|
|
identityFile = "/run/secrets/Hugo/ssh";
|
2023-09-10 22:46:34 +02:00
|
|
|
user = "admin";
|
|
|
|
};
|
2023-10-05 21:09:36 +02:00
|
|
|
"HPC" = {
|
|
|
|
hostname = "login.hpc.ugent.be";
|
|
|
|
identitiesOnly = true;
|
|
|
|
identityFile = "/run/secrets/UGent/HPC/ssh";
|
|
|
|
user = "vsc44995";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Git authentication
|
|
|
|
"git.depeuter.dev" = {
|
|
|
|
hostname = "git.depeuter.dev";
|
|
|
|
identitiesOnly = true;
|
|
|
|
identityFile = "/run/secrets/Hugo/Gitea/ssh";
|
|
|
|
user = "tdpeuter";
|
|
|
|
};
|
2023-09-11 12:49:47 +02:00
|
|
|
"github.com" = {
|
|
|
|
hostname = "github.com";
|
|
|
|
identitiesOnly = true;
|
|
|
|
identityFile = "/run/secrets/GitHub/ssh";
|
|
|
|
user = "tdpeuter";
|
|
|
|
};
|
2023-09-11 13:28:41 +02:00
|
|
|
"github.ugent.be" = {
|
|
|
|
hostname = "github.ugent.be";
|
|
|
|
identitiesOnly = true;
|
2023-10-05 21:09:36 +02:00
|
|
|
identityFile = "/run/secrets/UGent/GitHub/ssh";
|
2023-09-21 16:53:34 +02:00
|
|
|
user = "tdpeuter";
|
|
|
|
};
|
2023-09-10 22:46:34 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-04-11 18:00:21 +02:00
|
|
|
}
|