From b2c85d71c55430dc7b309fed009f3d002101913d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 1 Nov 2024 14:27:32 +0100 Subject: [PATCH] Fetch nix location from `nix`-script --- scripts/Common/OS/setup.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Common/OS/setup.fish b/scripts/Common/OS/setup.fish index 040c672f..8bcf3bde 100755 --- a/scripts/Common/OS/setup.fish +++ b/scripts/Common/OS/setup.fish @@ -3,6 +3,7 @@ function runSetup set -l dir (status dirname) source "$dir/../../lib/settings.fish" source "$dir/../../lib/hooks.fish" + source "$dir/../../lib/nix.fish" if [ -z "$CONFIG_NAME" ] selectProfile config @@ -51,9 +52,8 @@ function runSetup and echo "Preparing nix..." and begin - set -l channelDir /nix/var/nix/profiles/per-user/root/channels/nixpkgs - mkdir -p (dirname "$mountDir/$channelDir") - cp -r "$channelDir" "$mountDir/$channelDir" + mkdir -p (dirname "$mountDir/$nixPkgsDir") + cp -r "$nixPkgsDir" "$mountDir/$nixPkgsDir" end and echo "Installing dependencies..."