configuration.nix
:
let px4_drv = pkgs.callPackage ./px4_drv.nix {
kernel = pkgs.linux_4_19;
};
it930x = pkgs.callPackage ./it930x.nix {};
in
{
boot.kernelPackages = pkgs.linuxPackages_4_19;
boot.extraModulePackages = [ px4_drv ];
hardware.firmware = [ it930x ];
services.udev.packages = [ px4_drv ];
}