Add a hook for setting up device drivers

This commit is contained in:
Manuel Thalmann 2024-07-08 18:44:47 +02:00
parent df2a735ac0
commit a9108dd12c
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"