1{ lib, pkgs, ... }:
2{
3 name = "xpadneo";
4 meta.maintainers = with lib.maintainers; [ kira-bruneau ];
5
6 nodes = {
7 machine = {
8 config.hardware.xpadneo.enable = true;
9 };
10 };
11
12 # This is just a sanity check to make sure the module was
13 # loaded. We'd have to find some way to mock an xbox controller if
14 # we wanted more in-depth testing.
15 testScript = ''
16 machine.start();
17 machine.succeed("modinfo hid_xpadneo | grep 'version:\s\+${pkgs.linuxPackages.xpadneo.version}'")
18 '';
19}