From 0770ae3ecfa301c1c6f417e7aec3abecaa66ca8e Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 29 Apr 2025 20:28:00 +0200 Subject: [PATCH] :sparkles: [desktop] Bluetooth Added Bluetooth support to desktop, including PS3 controllers --- hosts/desktop/bluetooth.nix | 18 ++++++++++++++++++ hosts/desktop/default.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 hosts/desktop/bluetooth.nix diff --git a/hosts/desktop/bluetooth.nix b/hosts/desktop/bluetooth.nix new file mode 100644 index 0000000..2edf2ae --- /dev/null +++ b/hosts/desktop/bluetooth.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: + +{ + hardware.bluetooth = { + enable = true; + input = { + # Required to get PS3 controllers working + General = { + ClassicBondedOnly = false; + UserspaceHID = false; + }; + }; + powerOnBoot = true; + package = pkgs.unstable.bluez; + }; + + services.blueman.enable = true; +} diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index f463c93..14b26f2 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -7,6 +7,7 @@ { imports = [ (lib.custom.relativeToRoot "shared/modules") + ./bluetooth.nix ./hardware-configuration.nix ];