Allow customizing setup script per machine
This commit is contained in:
parent
0902465e1b
commit
781a44895b
2 changed files with 20 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -102,9 +102,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
|
||||
|
|
Loading…
Reference in a new issue