Split nix
configuration properly
This commit is contained in:
parent
8933dcc7cb
commit
2362c56fc0
1 changed files with 8 additions and 8 deletions
|
@ -4,14 +4,14 @@ begin
|
|||
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"
|
||||
else
|
||||
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
||||
sudo nix-channel --update
|
||||
end
|
||||
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
||||
sudo nix-channel --update
|
||||
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
|
||||
|
||||
runInstaller $argv
|
||||
|
|
Loading…
Reference in a new issue