From 7ebc556663c2dd462bd1fb4aa3226ec6fcbe23b6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 May 2022 13:39:52 -0700 Subject: add modules to manage bluetooth --- profiles/bluetooth/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 profiles/bluetooth/default.nix (limited to 'profiles/bluetooth') diff --git a/profiles/bluetooth/default.nix b/profiles/bluetooth/default.nix new file mode 100644 index 0000000..ffd05b4 --- /dev/null +++ b/profiles/bluetooth/default.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: +let cfg = config.my.profiles.bluetooth; +in { + options.my.profiles.bluetooth = with lib; { + enable = mkEnableOption "bluetooth profile"; + }; + + config = lib.mkIf cfg.enable { my.hardware.bluetooth.enable = true; }; +} -- cgit v1.2.3