Fetch nix location from nix
-script
This commit is contained in:
parent
94b22720b6
commit
b2c85d71c5
1 changed files with 3 additions and 3 deletions
|
@ -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..."
|
||||||
|
|
Loading…
Reference in a new issue