Split nix configuration properly

This commit is contained in:
Manuel Thalmann 2024-07-20 04:31:09 +02:00
parent 62a9c1e577
commit a72fd9d045

View file

@ -4,14 +4,14 @@ begin
source "$dir/../../Scripts/software.fish" source "$dir/../../Scripts/software.fish"
function configureSW -V dir -a scope 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"
else
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
sudo nix-channel --update sudo nix-channel --update
end end
function userConfig -S -V dir -a name
set -l configFile ~"$name"/.config/nix/nix.conf
mkdir -p (dirname "$configFile")
cp "$dir/../../../../archiso/airootfs/root/.config/nix/nix.conf" "$configFile"
end end
runInstaller $argv runInstaller $argv