Install nixpkgs during setup

This commit is contained in:
Manuel Thalmann 2024-12-05 14:13:52 +01:00
parent 266b1813eb
commit 7ea2b3952a

View file

@ -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 "