From 91954e9a02353543fe825de4063c32ef098238a1 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 5 May 2021 12:54:27 +0200 Subject: [PATCH] home: add bluetooth --- home/bluetooth.nix | 19 +++++++++++++++++++ home/default.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 home/bluetooth.nix diff --git a/home/bluetooth.nix b/home/bluetooth.nix new file mode 100644 index 0000000..2a4f613 --- /dev/null +++ b/home/bluetooth.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: +let + cfg = config.my.home.bluetooth; +in +{ + options.my.home.bluetooth = with lib; { + enable = mkEnableOption "bluetooth configuration"; + }; + + config = lib.mkIf cfg.enable { + services.blueman-applet = { + enable = true; + }; + + services.mpris-proxy = { + enable = true; + }; + }; +} diff --git a/home/default.nix b/home/default.nix index 91a6e51..7c5e807 100644 --- a/home/default.nix +++ b/home/default.nix @@ -2,6 +2,7 @@ { imports = [ ./bat.nix + ./bluetooth.nix ./direnv.nix ./documentation.nix ./firefox