Unverified Commit c33e419d authored by Cryolitia PukNgae's avatar Cryolitia PukNgae
Browse files

nixos/xpad-noone: init

parent d33b0f61
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@

- [Yggdrasil-Jumper](https://github.com/one-d-wide/yggdrasil-jumper) is an independent project that aims to transparently reduce latency of a connection over Yggdrasil network, utilizing NAT traversal to automatically bypass intermediary nodes.

- [xpad-noone](https://github.com/medusalix/xpad-noone) is the original upstream xpad driver from the Linux kernel with support for Xbox One controllers removed, especially useful for people who want to use an XBox One controller under the xone driver and an Xbox 360 controller under the xpad driver at the same time. Available as [hardware.xpad-noone](options.html#hardware.xpad-noone).

- [uMurmur](https://umurmur.net), minimalistic Mumble server primarily targeted to run on embedded computers. Available as [services.umurmur](options.html#opt-services.umurmur).

- [Zenoh](https://zenoh.io/), a pub/sub/query protocol with low overhead. The Zenoh router daemon is available as [services.zenohd](options.html#opt-services.zenohd.enable)
+25 −0
Original line number Diff line number Diff line
{
  config,
  lib,
  ...
}:

let
  cfg = config.hardware.xpad-noone;
in
{
  options.hardware.xpad-noone = {
    enable = lib.mkEnableOption "The Xpad driver from the Linux kernel with support for Xbox One controllers removed";
  };

  config = lib.mkIf cfg.enable {
    boot = {
      blacklistedKernelModules = [ "xpad" ];
      extraModulePackages = with config.boot.kernelPackages; [ xpad-noone ];
    };
  };

  meta = {
    maintainers = with lib.maintainers; [ Cryolitia ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@
  ./hardware/wooting.nix
  ./hardware/xone.nix
  ./hardware/xpadneo.nix
  ./hardware/xpad-noone.nix
  ./i18n/input-method/default.nix
  ./i18n/input-method/fcitx5.nix
  ./i18n/input-method/hime.nix