1
0
Fork 0
puter/modules/gcadapter.nix

29 lines
437 B
Nix
Raw Normal View History

2025-05-11 22:49:04 +02:00
{
config,
lib,
2025-07-03 13:19:03 +02:00
pkgs,
2025-05-11 22:49:04 +02:00
...
}:
let
cfg = config.hardware.gcadapter;
in
{
options.hardware.gcadapter.enable = lib.mkEnableOption "GameCube Adapter support";
config = lib.mkIf cfg.enable {
2025-07-03 13:19:03 +02:00
services.udev.packages = [
pkgs.dolphin-emu
];
2025-05-11 22:49:04 +02:00
boot = {
extraModulePackages = [
config.boot.kernelPackages.gcadapter-oc-kmod
];
kernelModules = [
"gcadapter_oc"
];
};
};
}