MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / entry

Function entry

install/install.ts:181–184  ·  view source on GitHub ↗
(source: string, target = source, ro = true)

Source from the content-addressed store, hash-verified

179
180const nixProfile = `${process.env.HOME}/.nix-profile/`;
181const entry = (source: string, target = source, ro = true) => `\
182 - type: bind
183 source: ${source}
184 target: ${target}${ro ? '\n readonly: true' : ''}`;
185const mount = `mount:
186${entry(`${nixProfile}bin`, '/bin')}
187${entry(`${nixProfile}bin`, '/usr/bin')}

Callers 1

install.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected