Fetch nix location from nix-script

This commit is contained in:
Manuel Thalmann 2024-11-01 14:27:32 +01:00
parent 94b22720b6
commit b2c85d71c5

View file

@ -3,6 +3,7 @@ function runSetup
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../lib/settings.fish" source "$dir/../../lib/settings.fish"
source "$dir/../../lib/hooks.fish" source "$dir/../../lib/hooks.fish"
source "$dir/../../lib/nix.fish"
if [ -z "$CONFIG_NAME" ] if [ -z "$CONFIG_NAME" ]
selectProfile config selectProfile config
@ -51,9 +52,8 @@ function runSetup
and echo "Preparing nix..." and echo "Preparing nix..."
and begin and begin
set -l channelDir /nix/var/nix/profiles/per-user/root/channels/nixpkgs mkdir -p (dirname "$mountDir/$nixPkgsDir")
mkdir -p (dirname "$mountDir/$channelDir") cp -r "$nixPkgsDir" "$mountDir/$nixPkgsDir"
cp -r "$channelDir" "$mountDir/$channelDir"
end end
and echo "Installing dependencies..." and echo "Installing dependencies..."