2024-07-16 20:17:07 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function configureSW -V dir -a scope
|
|
|
|
if [ "$scope" = "user" ]
|
|
|
|
set -l configFile ~/.config/nix/nix.conf
|
|
|
|
mkdir -p (dirname "$configFile")
|
|
|
|
cp "$dir/../../../../archiso/airootfs/root/.config/nix/nix.conf" "$configFile"
|
2024-07-17 12:18:27 +00:00
|
|
|
else
|
|
|
|
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
|
|
|
sudo nix-channel --update
|
2024-07-16 20:17:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|