mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-08 18:16:33 +01:00
20 lines
447 B
Nix
20 lines
447 B
Nix
|
{ options, config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
#with lib.internal;
|
||
|
let cfg = config.custom.hardware.bluetooth;
|
||
|
in
|
||
|
{
|
||
|
options.custom.hardware.bluetooth = with types; {
|
||
|
enable = mkBoolOpt false "Whether or not to enable bluetooth";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
|
||
|
hardware.bluetooth.enable = true;
|
||
|
hardware.bluetooth.hsphfpd.enable = !config.services.pipewire.wireplumber.enable;
|
||
|
hardware.bluetooth.powerOnBoot = true;
|
||
|
|
||
|
};
|
||
|
}
|