whatever
This commit is contained in:
parent
be9fb9278e
commit
b8af0e9761
165 changed files with 1815 additions and 1431 deletions
27
modules/gcadapter.nix
Normal file
27
modules/gcadapter.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.hardware.gcadapter;
|
||||
in
|
||||
{
|
||||
options.hardware.gcadapter.enable = lib.mkEnableOption "GameCube Adapter support";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.udev.extraRules = ''
|
||||
ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="666", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device" TAG+="uaccess"
|
||||
'';
|
||||
|
||||
boot = {
|
||||
extraModulePackages = [
|
||||
config.boot.kernelPackages.gcadapter-oc-kmod
|
||||
];
|
||||
|
||||
kernelModules = [
|
||||
"gcadapter_oc"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue