{ pkgs, config, lib, ... }: with lib; let cfg = config.eboskma.networking; in { options.eboskma.networking = { enable = mkEnableOption "activate networing settings"; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ nmap nmap-formatter ]; services.avahi = { enable = true; nssmdns4 = true; nssmdns6 = config.networking.enableIPv6; publish = { enable = true; domain = true; hinfo = true; userServices = true; workstation = true; }; }; }; }