dotfiles/nixos/ssh.nix

24 lines
433 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
services.avahi = {
enable = true;
nssmdns = true;
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;
passwordAuthentication = false;
};
}