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
function installDrivers -S
source "$(status dirname)/../../../scripts/Common/Scripts/config.fish"
pacstrap -K (getConfig valhalla.partition.rootDir) linux-firmware-marvell;
end
begin
set -l dir (status dirname)
CONFIG_MODULE="$(status dirname)/config.nix" \
ARCH_HOSTNAME="manu-surface" \
USER_DISPLAYNAME="Manuel Thalmann" \
function installDrivers -V dir -S
source "$dir/../../../scripts/Common/Scripts/config.fish"
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";
end

View file

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