From 1c19fbdd88b075c31bea3ca26d408da1ef3e637c Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Wed, 4 Jun 2025 12:20:54 -0500 Subject: hosts/tomato: Add new bluetooth module and use it --- modules/bluetooth.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/bluetooth.nix (limited to 'modules/bluetooth.nix') diff --git a/modules/bluetooth.nix b/modules/bluetooth.nix new file mode 100644 index 0000000..cf7cee5 --- /dev/null +++ b/modules/bluetooth.nix @@ -0,0 +1,16 @@ +{ lib, pkgs, config, ... }: + +let cfg = config.this.bluetooth; +in +{ + options.this.bluetooth = { + enable = lib.mkEnableOption "bluetooth"; + }; + + config = lib.mkIf cfg.enable { + hardware.bluetooth.enable = true; + environment.systemPackages = with pkgs; [ + bluetuith + ]; + }; +} -- cgit v1.2.3