nixos/xpad-noone: init

This commit is contained in:
Cryolitia PukNgae 2025-03-14 15:17:42 +08:00
parent d33b0f613b
commit c33e419dd1
No known key found for this signature in database
GPG key ID: 3E5D1772FC8A8EDD
3 changed files with 28 additions and 0 deletions

View file

@ -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)

View file

@ -0,0 +1,25 @@
{
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 ];
};
}

View file

@ -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