PortValhalla/scripts/Common/Software/nix/main.fish

19 lines
522 B
Fish
Raw Normal View History

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
2024-07-20 02:31:09 +00:00
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"
2024-07-16 20:17:07 +00:00
end
runInstaller $argv
end