Files
nixos-macmini/modules/system/networking.nix

23 lines
363 B
Nix

{ ... }:
{
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
networking = {
hostName = "macmini";
networkmanager.enable = true;
};
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
22
8443
];
};
}