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

19 lines
522 B
Fish

#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function configureSW -V dir -a scope
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
end