Allow customizing setup script per machine
This commit is contained in:
parent
1dc32d2bb6
commit
ecb264d747
|
@ -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;
|
||||||
source "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
|
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
|
||||||
|
|
|
@ -112,8 +112,10 @@ begin
|
||||||
end | arch-chroot "$mountDir" tee "$file" > /dev/null
|
end | arch-chroot "$mountDir" tee "$file" > /dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
function getInstallerScript -S
|
if not type -q getInstallerScript
|
||||||
echo "$dir/install.fish"
|
function getInstallerScript -S
|
||||||
|
echo "$dir/install.fish"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
source "$dir/../../Common/OS/setup.fish"
|
source "$dir/../../Common/OS/setup.fish"
|
||||||
|
|
Loading…
Reference in a new issue