{ pkgs , config , lib , ... }: with lib; let cfg = config.eboskma.networking; in { options.eboskma.networking = { enable = mkEnableOption "activate networing settings"; }; config = mkIf cfg.enable { users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "networkmanager" ]; environment.systemPackages = with pkgs; [ nmap nmap-formatter ]; services.avahi = { enable = true; nssmdns = true; publish = { enable = true; domain = true; userServices = true; }; }; }; }