NixOSConfig/lib/modules/xone.nix

23 lines
503 B
Nix
Raw Normal View History

2024-05-08 07:58:18 +00:00
{ 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;
};
}
);
})
];
};
};
}