Configure nix during setup

This commit is contained in:
Manuel Thalmann 2024-07-16 22:17:07 +02:00
commit 476d56cf3f
3 changed files with 20 additions and 7 deletions
scripts/Common/Software/nix

View file

@ -0,0 +1,15 @@
#!/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"
end
end
runInstaller $argv
end