Install nixpkgs
during setup
This commit is contained in:
parent
266b1813eb
commit
7ea2b3952a
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ function runSetup
|
||||||
|
|
||||||
function setupAction -V dir -V projectRoot -V PROJECT_CLONE_ROOT
|
function setupAction -V dir -V projectRoot -V PROJECT_CLONE_ROOT
|
||||||
source "$dir/../../lib/hooks.fish"
|
source "$dir/../../lib/hooks.fish"
|
||||||
|
source "$dir/../../lib/nix.fish"
|
||||||
source "$dir/../../lib/restoration.fish"
|
source "$dir/../../lib/restoration.fish"
|
||||||
source "$dir/../../lib/settings.fish"
|
source "$dir/../../lib/settings.fish"
|
||||||
set -l mountDir (getOSConfig partition.rootDir)
|
set -l mountDir (getOSConfig partition.rootDir)
|
||||||
|
@ -59,6 +60,8 @@ function runSetup
|
||||||
|
|
||||||
and echo "Cloning project..."
|
and echo "Cloning project..."
|
||||||
and source "$dir/../../lib/copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
|
and source "$dir/../../lib/copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
|
||||||
|
and mkdir -p "$mountDir/$nixPkgsDir"
|
||||||
|
and cp -r "$nixPkgsDir"/* "$mountDir/$nixPkgsDir"
|
||||||
and runHook initOS "Please set up a function `initOS` for initializing the mounted OS and installing valhalla dependencies"
|
and runHook initOS "Please set up a function `initOS` for initializing the mounted OS and installing valhalla dependencies"
|
||||||
and runChroot "$mountDir" git config --system --add safe.directory "$PROJECT_CLONE_ROOT"
|
and runChroot "$mountDir" git config --system --add safe.directory "$PROJECT_CLONE_ROOT"
|
||||||
and runHook --force bootstrapSetup "Please set up a function `bootstrapSetup` for installing `fish` into the "
|
and runHook --force bootstrapSetup "Please set up a function `bootstrapSetup` for installing `fish` into the "
|
||||||
|
|
Loading…
Reference in a new issue