From 447d5c06b44b413e9c840f81a21283fb36003d8b Mon Sep 17 00:00:00 2001 From: Markus Heurung Date: Tue, 13 Aug 2024 12:48:34 +0200 Subject: [PATCH] setup bluetooth --- home.nix | 2 ++ hosts/cube-hardware-configuration.nix | 15 +++++++++++++-- hosts/cube.nix | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index 67d7e08..04981e2 100644 --- a/home.nix +++ b/home.nix @@ -23,6 +23,7 @@ _1password-gui atkinson-hyperlegible alacritty + blueman brightnessctl curl darktable @@ -43,6 +44,7 @@ mpv morgen obsidian + pamixer pavucontrol powertop qutebrowser diff --git a/hosts/cube-hardware-configuration.nix b/hosts/cube-hardware-configuration.nix index 724ac8c..79c410b 100644 --- a/hosts/cube-hardware-configuration.nix +++ b/hosts/cube-hardware-configuration.nix @@ -49,6 +49,17 @@ # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - hardware.i2c.enable = true; + hardware = { + cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + i2c.enable = true; + bluetooth = { + enable = true; + powerOnBoot = true; + settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + }; + }; + }; + }; } diff --git a/hosts/cube.nix b/hosts/cube.nix index 0739c88..b0abedd 100644 --- a/hosts/cube.nix +++ b/hosts/cube.nix @@ -50,6 +50,7 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + wireplumber.enable = true; # If you want to use JACK applications, uncomment this # jack.enable = true; };