pub fn insert(path: &Path, list: &NixList, pkg: &str) -> Result<bool>
Insert a package into a list. Returns true if inserted, false if already present.