pub(crate) fn nix_path(path: &str) -> String
Option paths are dotted identifiers; quote any segment that isn’t a plain one.