Add kagami-air-m1

This commit is contained in:
Natsu Kagami 2022-10-16 23:55:37 +02:00 committed by Natsu Kagami
parent 5baac9ff29
commit fe85f023b7
9 changed files with 359 additions and 7 deletions

View file

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
{
hardware.firmware = [
(pkgs.stdenvNoCC.mkDerivation {
name = "firmware";
buildCommand = ''
mkdir -p $out/lib/firmware
FIRMWARE='${./firmware.tar}'
if [ -e "$FIRMWARE" ]; then
tar xf "$FIRMWARE" -C $out/lib/firmware
else
# stop nixos infra from breaking when it doesn't have any firmware
touch $out/lib/firmware/.dummy
fi
'';
})
];
}

Binary file not shown.