dotfiles/nixos/ssh.nix

26 lines
459 B
Nix

{ 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";
};
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
}