def services
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/setting/ops.bend as Opsimport Base
517# ---- network: nix-darwin gives every known service the same DNS servers and search domains; a Mac where
518# they differ cannot be declared ----
519# `networksetup -listallnetworkservices`: a header line, then the services ("*" marks a disabled one).
520def services(+out: String) -> List<&2, String>:
521 List.filter(~String, ~(s => Bool.not(String.starts_with(s, "*"))), List.drop(&2, String, filled(out), 1n))