aboutsummaryrefslogtreecommitdiff
path: root/nixos/bluetooth.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/bluetooth.nix')
-rw-r--r--nixos/bluetooth.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/bluetooth.nix b/nixos/bluetooth.nix
new file mode 100644
index 0000000..ebe6b88
--- /dev/null
+++ b/nixos/bluetooth.nix
@@ -0,0 +1,19 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.nixos.bluetooth;
+ inherit (lib) types mkOption;
+in
+{
+ options.nixos.bluetooth = {
+ enable = mkOption {
+ type = types.bool;
+ default = true;
+ description = "enable bluetooth support";
+ };
+ };
+
+ config = lib.mkIf cfg.enable {
+ hardware.bluetooth.enable = true;
+ services.blueman.enable = true;
+ };
+}