diff --git a/system/features/bluetooth.nix b/system/features/bluetooth.nix new file mode 100644 index 0000000..89d280e --- /dev/null +++ b/system/features/bluetooth.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + + environment.systemPackages = with pkgs; [ + bluez + ]; +} diff --git a/system/hosts/altair/configuration.nix b/system/hosts/altair/configuration.nix index 12cae51..f5c7768 100644 --- a/system/hosts/altair/configuration.nix +++ b/system/hosts/altair/configuration.nix @@ -6,7 +6,6 @@ pkgs, ... }: - { networking.hostName = "altair"; # Define your hostname. diff --git a/system/hosts/altair/default.nix b/system/hosts/altair/default.nix index bb71479..aa1f42c 100644 --- a/system/hosts/altair/default.nix +++ b/system/hosts/altair/default.nix @@ -7,6 +7,7 @@ ../../authorized-keys.nix ../../features/appimage.nix ../../features/audio.nix + ../../features/bluetooth.nix ../../features/gc.nix ../../features/gui.nix ../../features/container-dev.nix diff --git a/system/hosts/altair/hardware-configuration.nix b/system/hosts/altair/hardware-configuration.nix index 004f3a5..cecac5f 100644 --- a/system/hosts/altair/hardware-configuration.nix +++ b/system/hosts/altair/hardware-configuration.nix @@ -32,6 +32,12 @@ }; kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ]; + + # disable_ertm is required for xpadneo to connect properly and establish a + # data connection. + extraModprobeConfig = '' + options bluetooth disable_ertm=1 + ''; }; fileSystems = { @@ -107,6 +113,13 @@ # Enable the nvidia-settings menu? nvidiaSettings = true; }; + xpadneo = { + enable = true; + settings = { + disable_mouse = 1; + }; + }; + bluetooth.enable = true; }; # Add a udev rule to prevent the mouse from waking the system. Note that it