From 5d0f2554cf56459b0afd27d3ed437a7fa50602a9 Mon Sep 17 00:00:00 2001 From: adikro Date: Thu, 8 Jan 2026 20:40:35 +0100 Subject: some modularization --- os/srv/bluetooth.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 os/srv/bluetooth.nix (limited to 'os/srv/bluetooth.nix') diff --git a/os/srv/bluetooth.nix b/os/srv/bluetooth.nix new file mode 100644 index 0000000..a803c55 --- /dev/null +++ b/os/srv/bluetooth.nix @@ -0,0 +1,14 @@ +{ config, lib, ... }: +let + cfg = config.os.srv.bluetooth; +in +{ + options.os.srv.bluetooth.enable = lib.mkEnableOption "enables bluetooth support"; + config = lib.mkIf cfg.enable { + services.blueman.enable = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; + }; +} -- cgit v1.3