profiles: add bluetooth

This commit is contained in:
Bruno BELANYI 2021-05-09 11:39:20 +02:00
parent d2c9b72eb6
commit 4fbb3d53e9
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 = [ imports = [
# FIXME ./bluetooth.nix
]; ];
} }