From f25bd93db41ee9693fcc2162b4778ac2c86305a4 Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 30 Jun 2025 12:40:11 -0400 Subject: [PATCH] Add xpadneo to get controller working? --- nodes/hosts/common/configuration.nix | 1 + nodes/hosts/common/services/blueman.nix | 3 +++ nodes/hosts/common/system/bluetooth.nix | 12 ++++++++++-- nodes/hosts/lappy/hardware-configuration.nix | 1 + nodes/hosts/lappy/system/bootloader.nix | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 nodes/hosts/common/services/blueman.nix diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index 0a0513c..a488b1f 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -19,6 +19,7 @@ ./programs/streamcontroller.nix ./programs/zen-browser.nix ./scripts/upgrade-diff.nix + ./services/blueman.nix ./services/cups.nix ./services/desktopmanager.nix ./services/displaymanager.nix diff --git a/nodes/hosts/common/services/blueman.nix b/nodes/hosts/common/services/blueman.nix new file mode 100644 index 0000000..74e8618 --- /dev/null +++ b/nodes/hosts/common/services/blueman.nix @@ -0,0 +1,3 @@ +{ pkgs, ...}: { + services.blueman.enable = true; +} diff --git a/nodes/hosts/common/system/bluetooth.nix b/nodes/hosts/common/system/bluetooth.nix index 21c4578..ac8a783 100644 --- a/nodes/hosts/common/system/bluetooth.nix +++ b/nodes/hosts/common/system/bluetooth.nix @@ -1,5 +1,13 @@ { ... }: { - hardware.bluetooth.enable = true; # enables support for Bluetooth - hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + hardware.bluetooth = { + enable = true; # enables support for Bluetooth + powerOnBoot = true; # powers up the default Bluetooth controller on boot + settings.General = { + Privacy = "device"; + JustWorksRepairing = "always"; + Class = "0x000100"; + FastConnectable = true; + }; + }; } diff --git a/nodes/hosts/lappy/hardware-configuration.nix b/nodes/hosts/lappy/hardware-configuration.nix index a280ae3..dc28b71 100644 --- a/nodes/hosts/lappy/hardware-configuration.nix +++ b/nodes/hosts/lappy/hardware-configuration.nix @@ -10,4 +10,5 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.xpadneo.enable = true; } diff --git a/nodes/hosts/lappy/system/bootloader.nix b/nodes/hosts/lappy/system/bootloader.nix index 745f00e..19b2371 100644 --- a/nodes/hosts/lappy/system/bootloader.nix +++ b/nodes/hosts/lappy/system/bootloader.nix @@ -6,7 +6,7 @@ }; kernelPackages = pkgs.linuxPackages_xanmod_stable; kernelModules = [ "kvm-intel" ]; - extraModulePackages = with config.boot.kernelPackages; [ xone ]; + extraModulePackages = with config.boot.kernelPackages; [ xpadneo ]; extraModprobeConfig = '' options bluetooth disable_ertm=1 ''; initrd = {