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 ];