Compare commits

..

No commits in common. "f74e1d681c9df603dab256a81089ce7ecb9993c3" and "133f2ce61efcb7530a0a80691d51d859be9eb635" have entirely different histories.

View file

@ -11,6 +11,8 @@ function runSetup
source "$dir/../../lib/restoration.fish"
source "$dir/../../lib/settings.fish"
set -l mountDir (getOSConfig partition.rootDir)
set -l script (mktemp)
chmod +x "$script"
if not type -q runChroot
function runChroot -S
@ -77,10 +79,18 @@ function runSetup
end | runChroot "$mountDir" tee /root/.bash_profile >/dev/null
end
function prepareNix -V dir
source "$dir/../../lib/nix.fish"
source "$dir/../../lib/settings.fish"
set -l mountDir (getOSConfig partition.rootDir)
# Copy `nixpkgs` channel
mkdir -p (dirname "$mountDir/$nixPkgsDir")
cp -r "$nixPkgsDir" "$mountDir/$nixPkgsDir"
end
function actionPreRun
set -l script (mktemp)
echo "Partitioning drives..."
chmod +x "$script"
and getOSConfig partition.script >"$script"
and "$script"
and rm "$script"