1
0
Fork 0
puter/modules/gcadapter.nix
2025-07-03 13:19:03 +02:00

28 lines
437 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.gcadapter;
in
{
options.hardware.gcadapter.enable = lib.mkEnableOption "GameCube Adapter support";
config = lib.mkIf cfg.enable {
services.udev.packages = [
pkgs.dolphin-emu
];
boot = {
extraModulePackages = [
config.boot.kernelPackages.gcadapter-oc-kmod
];
kernelModules = [
"gcadapter_oc"
];
};
};
}