From b41d8ed8c4bb1d29218e2e9cc7ad15953a016f21 Mon Sep 17 00:00:00 2001 From: Hazem Fahmi Date: Fri, 13 Dec 2024 14:25:22 +0200 Subject: [PATCH] Enable XBox Controller connection via USB --- TODO.md | 3 +++ modules/nixos/suites/games/default.nix | 32 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/TODO.md b/TODO.md index 226a937..ffdb6fe 100644 --- a/TODO.md +++ b/TODO.md @@ -104,3 +104,6 @@ fwcd.kotlin --> Install and configure paths for JDK and stuff or disable those f - Add clamav - Quick workflow to get the transcription of a video into an Obsidian note, and start editing. - Run an LLM locally and fine tune it on a TfC report. + + +create alias for docker delete all images \ No newline at end of file diff --git a/modules/nixos/suites/games/default.nix b/modules/nixos/suites/games/default.nix index 67438cb..01e3f3d 100644 --- a/modules/nixos/suites/games/default.nix +++ b/modules/nixos/suites/games/default.nix @@ -17,6 +17,35 @@ in { true; # Open ports in the firewall for Source Dedicated Server }; + # Configure wired XBox Controller + hardware.xone = enabled; + + + # Configure wireless bluetooth controller (Failed attempt) + # Refs: + # https://www.reddit.com/r/linux_gaming/comments/smxqm2/how_to_use_xpadneo_with_an_xbox_series_controller/ + + # hardware.bluetooth.settings = { + # General = { + # Privacy = "device"; + # JustWorksRepairing = "always"; + # Class = "0x000100"; + # FastConnectable = true; + # # ControllerMode = "bredr"; + # }; + + # LE = { + # MinConnectionInterval = 7; + # MaxConnectionInterval = 9; + # ConnectionLatency = 0; + # }; + + # GATT = { + # ReconnectIntervals = "1,1,2,3,5,8,13,21,34,55"; + # AutoEnable = true; + # }; + # }; + # TODO: Replicate this in common desktop configuration hardware.opengl = { enable = true; @@ -33,6 +62,9 @@ in { }; environment.systemPackages = with pkgs; [ + + evtest-qt # GUI Controller tester + # Lutris lutris # Needed for some installers like League of Legends