wip
This commit is contained in:
18
machines/nat/m1-support/firmware/default.nix
Normal file
18
machines/nat/m1-support/firmware/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
hardware.firmware = [
|
||||
(pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "firmware";
|
||||
buildCommand = ''
|
||||
mkdir -p $out/lib/firmware
|
||||
FIRMWARE=`echo ${./.}/*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
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
BIN
machines/nat/m1-support/firmware/firmware.tar
Executable file
BIN
machines/nat/m1-support/firmware/firmware.tar
Executable file
Binary file not shown.
Reference in New Issue
Block a user