From a9108dd12c0f8b48d6d982bbd542fcee8c8d8015 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 8 Jul 2024 18:44:47 +0200 Subject: [PATCH] Add a hook for setting up device drivers --- profiles/ManuSurface/Arch/setup.fish | 6 ++++-- scripts/Arch/OS/setup.fish | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/profiles/ManuSurface/Arch/setup.fish b/profiles/ManuSurface/Arch/setup.fish index 5ea3d860..3105abc4 100755 --- a/profiles/ManuSurface/Arch/setup.fish +++ b/profiles/ManuSurface/Arch/setup.fish @@ -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; diff --git a/scripts/Arch/OS/setup.fish b/scripts/Arch/OS/setup.fish index aeddb3f7..604f4a5c 100644 --- a/scripts/Arch/OS/setup.fish +++ b/scripts/Arch/OS/setup.fish @@ -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"