This commit is contained in:
metamuffin 2024-11-13 01:07:39 +01:00
parent 106f48af3f
commit ed11bcff2d
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654
7 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,5 @@
[Match]
Type=wlan
[Link]
Name=wfi0

View file

@ -1,6 +1,6 @@
[Unit]
Description=Generate wpa_supplicant config from EFI variables
Before=wpa_supplicant.service
Before=wpa_supplicant@.service
ConditionPathExists=/sys/firmware/efi/efivars/WlanSSID-97b6e7a4-b8a6-4d85-b7c4-0030bb5f2d38
[Service]

View file

@ -1 +0,0 @@
/usr/lib/systemd/system/wpa_supplicant.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/system/wpa_supplicant@.service

View file

@ -2,4 +2,4 @@
set ssid (cat /sys/firmware/efi/efivars/WlanSSID-97b6e7a4-b8a6-4d85-b7c4-0030bb5f2d38 | tail -c +5)
set psk (cat /sys/firmware/efi/efivars/WlanPSK-97b6e7a4-b8a6-4d85-b7c4-0030bb5f2d38 | tail -c +5)
wpa_passphrase $ssid $psk > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_passphrase $ssid $psk > /etc/wpa_supplicant/wpa_supplicant-wfi0.conf

View file

@ -12,7 +12,7 @@ bootmodes=('uefi-ia32.systemd-boot.esp' 'uefi-x64.systemd-boot.esp')
arch="x86_64"
pacman_conf="pacman.conf"
airootfs_image_type="squashfs"
airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '10')
airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '5')
bootstrap_tarball_compression=(zstd -c -T0 --long -19)
file_permissions=(
["/etc/shadow"]="0:0:400"