Allow customizing setup script per machine

This commit is contained in:
Manuel Thalmann 2024-07-13 13:03:56 +02:00
parent 0902465e1b
commit 781a44895b
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" \
source "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
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

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