From 84a718ac1b4def43028a8ec2a14ed4a94063ac09 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Mon, 26 May 2025 00:18:45 -0400 Subject: repo: sync configs --- nixos/bluetooth.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nixos/bluetooth.nix (limited to 'nixos/bluetooth.nix') 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; + }; +} -- cgit v1.2.3