Allow customizing setup script per machine

This commit is contained in:
Manuel Thalmann 2024-07-13 13:03:56 +02:00
parent 1dc32d2bb6
commit ecb264d747
2 changed files with 20 additions and 10 deletions

View file

@ -1,10 +1,18 @@
#!/bin/env fish #!/bin/env fish
function installDrivers -S begin
source "$(status dirname)/../../../scripts/Common/Scripts/config.fish" set -l dir (status dirname)
pacstrap -K (getConfig valhalla.partition.rootDir) linux-firmware-marvell;
end
CONFIG_MODULE="$(status dirname)/config.nix" \ function installDrivers -V dir -S
ARCH_HOSTNAME="manu-surface" \ source "$dir/../../../scripts/Common/Scripts/config.fish"
USER_DISPLAYNAME="Manuel Thalmann" \ pacstrap -K (getConfig valhalla.partition.rootDir) linux-firmware-marvell;
end
function getInstallerScript -V dir -S
echo "$dir/install.sh"
end
CONFIG_MODULE="$(status dirname)/config.nix" \
ARCH_HOSTNAME="manu-surface" \
USER_DISPLAYNAME="Manuel Thalmann" \
source "$(status dirname)/../../../scripts/Arch/OS/setup.fish"; source "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
end

View file

@ -112,9 +112,11 @@ begin
end | arch-chroot "$mountDir" tee "$file" > /dev/null end | arch-chroot "$mountDir" tee "$file" > /dev/null
end end
if not type -q getInstallerScript
function getInstallerScript -S function getInstallerScript -S
echo "$dir/install.fish" echo "$dir/install.fish"
end end
end
source "$dir/../../Common/OS/setup.fish" source "$dir/../../Common/OS/setup.fish"
end end