profiles: add bluetooth
This commit is contained in:
parent
d2c9b72eb6
commit
4fbb3d53e9
15
profiles/bluetooth.nix
Normal file
15
profiles/bluetooth.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -2,6 +2,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
# FIXME
|
||||
./bluetooth.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue