mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: update default mount config
This commit is contained in:
1 parent
d7908aaff6
commit
512a912080
1 file changed
+6
-3
+6
-3
@@ -98,14 +98,17 @@ let password = randomstring(32);
|
|||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
let CN = true;
|
let CN = true;
|
||||||
|
|
||||||
const nixBin = `${process.env.HOME}/.nix-profile/bin`;
|
const nixProfile = `${process.env.HOME}/.nix-profile/`;
|
||||||
const entry = (source: string, target = source, ro = true) => `\
|
const entry = (source: string, target = source, ro = true) => `\
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ${source}
|
source: ${source}
|
||||||
target: ${target}${ro ? '\n readonly: true' : ''}`;
|
target: ${target}${ro ? '\n readonly: true' : ''}`;
|
||||||
const mount = `mount:
|
const mount = `mount:
|
||||||
${entry(nixBin, '/bin')}
|
${entry(`${nixProfile}bin`, '/bin')}
|
||||||
${entry(nixBin, '/usr/bin')}
|
${entry(`${nixProfile}bin`, '/usr/bin')}
|
||||||
|
${entry(`${nixProfile}lib`, '/lib')}
|
||||||
|
${entry(`${nixProfile}share`, '/share')}
|
||||||
|
${entry(`${nixProfile}etc`, '/etc')}
|
||||||
${entry('/nix', '/nix')}
|
${entry('/nix', '/nix')}
|
||||||
${entry('/dev/null', '/dev/null', false)}
|
${entry('/dev/null', '/dev/null', false)}
|
||||||
${entry('/dev/urandom', '/dev/urandom', false)}
|
${entry('/dev/urandom', '/dev/urandom', false)}
|
||||||
|
|||||||
Reference in new issue
Block a user