2023-08-02 11:54:14 -06:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-06-02 21:58:13 -06:00
|
|
|
security.pam.sshAgentAuth.enable = true;
|
2023-08-02 11:54:14 -06:00
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
2023-12-21 16:04:06 -07:00
|
|
|
nssmdns4 = true;
|
2023-08-02 11:54:14 -06:00
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
domain = true;
|
|
|
|
workstation = true;
|
|
|
|
userServices = true;
|
|
|
|
addresses = true;
|
|
|
|
hinfo = true;
|
|
|
|
};
|
|
|
|
extraServiceFiles = {
|
|
|
|
ssh = "''${pkgs.avahi}/etc/avahi/services/ssh.service";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-08-07 13:33:41 -06:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-08-08 00:27:39 -06:00
|
|
|
settings = {
|
2023-08-08 14:03:17 -06:00
|
|
|
PasswordAuthentication = false;
|
2023-09-10 17:13:13 -06:00
|
|
|
X11Forwarding = true;
|
2023-08-08 00:27:39 -06:00
|
|
|
};
|
2023-08-07 13:33:41 -06:00
|
|
|
};
|
2023-08-21 17:25:41 -06:00
|
|
|
|
|
|
|
programs.ssh = {
|
2024-06-02 21:58:13 -06:00
|
|
|
forwardX11 = false;
|
2023-09-10 17:13:13 -06:00
|
|
|
setXAuthLocation = true;
|
2023-08-21 17:25:41 -06:00
|
|
|
knownHosts = {
|
|
|
|
github = {
|
|
|
|
hostNames = ["github.com"];
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl";
|
|
|
|
};
|
|
|
|
gitlab = {
|
|
|
|
hostNames = ["gitlab.com"];
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-08-02 11:54:14 -06:00
|
|
|
}
|