{ lib, pkgs, xonePatcher, ... }: { config = { nixpkgs = { config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "xow_dongle-firmware" ]; overlays = [ (final: prev: { linuxPackages = prev.linuxPackages.extend ( final: prev: { xone = xonePatcher { inherit (pkgs) fetchFromGitHub; inherit (prev) xone; }; } ); }) ]; }; }; }