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