nix-config/modules/nixos/profiles/bluetooth/default.nix

16 lines
289 B
Nix
Raw Normal View History

2021-05-09 11:39:20 +02:00
{ config, lib, ... }:
let
cfg = config.my.profiles.bluetooth;
in
{
options.my.profiles.bluetooth = with lib; {
enable = mkEnableOption "bluetooth profile";
};
config = lib.mkIf cfg.enable {
2021-05-29 16:37:07 +02:00
my.hardware.bluetooth.enable = true;
2021-05-09 11:39:20 +02:00
my.home.bluetooth.enable = true;
};
}