profiles: add bluetooth

This commit is contained in:
Bruno BELANYI 2021-05-09 11:39:20 +02:00
parent 0c943d8430
commit 885b45d39c
2 changed files with 16 additions and 1 deletions

15
profiles/bluetooth.nix Normal file
View file

@ -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;
};
}

View file

@ -2,6 +2,6 @@
{ ... }:
{
imports = [
# FIXME
./bluetooth.nix
];
}