summaryrefslogtreecommitdiff
path: root/modules/bluetooth.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bluetooth.nix')
-rw-r--r--modules/bluetooth.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/bluetooth.nix b/modules/bluetooth.nix
new file mode 100644
index 0000000..1705db6
--- /dev/null
+++ b/modules/bluetooth.nix
@@ -0,0 +1,19 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+let
+ cfg = config.os.srv.bluetooth;
+in
+{
+ options.os.srv.bluetooth.enable = lib.mkEnableOption "enables bluetooth support";
+ config = lib.mkIf cfg.enable {
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ };
+ environment.systemPackages = [ pkgs.bluetui ];
+ };
+}