create bluetooth module
This commit is contained in:
19
modules/nixos/bluetooth.nix
Normal file
19
modules/nixos/bluetooth.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myConfig.bluetooth;
|
||||
in {
|
||||
options.myConfig.bluetooth = {
|
||||
enable = lib.mkEnableOption "bluetooth";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
services.blueman.enable = true;
|
||||
};
|
||||
}
|
@ -34,5 +34,6 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user