Add a hook for setting up device drivers

This commit is contained in:
Manuel Thalmann 2024-07-08 18:44:47 +02:00
parent 9e6672d82c
commit 75c45473ac
2 changed files with 12 additions and 4 deletions

View file

@ -1,7 +1,9 @@
#!/bin/env fish
function installDrivers -S
pacstrap -K "$ARCH_MOUNT_ROOT" linux-firmware-marvell;
end
CONFIG_MODULE="$(status dirname)/config.nix" \
ARCH_HOSTNAME="manu-surface" \
USER_DISPLAYNAME="Manuel Thalmann" \
. "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
pacstrap -K "/mnt" linux-firmware-marvell;

View file

@ -35,8 +35,14 @@ begin
networkmanager \
man-db \
man-pages \
texinfo \
;
texinfo
and if type -q installDrivers
echo "Installing drivers…"
installDrivers
else
true
end
and "$dir/../../copy-repo.fish" "$ARCH_MOUNT_ROOT$tempRoot"
and genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"