From 4fbb3d53e9e604f6978a0eaa4711d2c7bf60cfeb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 9 May 2021 11:39:20 +0200 Subject: [PATCH] profiles: add bluetooth --- profiles/bluetooth.nix | 15 +++++++++++++++ profiles/default.nix | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 profiles/bluetooth.nix diff --git a/profiles/bluetooth.nix b/profiles/bluetooth.nix new file mode 100644 index 0000000..33792d7 --- /dev/null +++ b/profiles/bluetooth.nix @@ -0,0 +1,15 @@ +{ 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.modules.bluetooth.enable = true; + + my.home.bluetooth.enable = true; + }; +} diff --git a/profiles/default.nix b/profiles/default.nix index d726f32..30d76c2 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -2,6 +2,6 @@ { ... }: { imports = [ - # FIXME + ./bluetooth.nix ]; }