Daniel Lundin
c59ea29957
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
We want verity protected partitions as well as encrypted state/data along with verified boot. This PR integrates Peter Marshall's awesome little Nixlet project as a starting point, especially the nice testing scaffolding will be super helpful! ✨ https://github.com/petm5/nixlet/
12 lines
336 B
Nix
12 lines
336 B
Nix
{ stdenv, lib
|
|
, linux-firmware
|
|
, fwDirs
|
|
}: stdenv.mkDerivation {
|
|
pname = "linux-firmware-minimal";
|
|
version = linux-firmware.version;
|
|
buildCommand = lib.concatStringsSep "\n" (
|
|
[''mkdir -p "$out/lib/firmware"'']
|
|
++ (map (name: ''
|
|
cp -r "${linux-firmware}/lib/firmware/${name}" "$out/lib/firmware/${name}"
|
|
'') fwDirs));
|
|
}
|