aboutsummaryrefslogtreecommitdiff
path: root/nixos/bluetooth.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-05-26 00:18:45 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-05-26 00:18:45 -0400
commit84a718ac1b4def43028a8ec2a14ed4a94063ac09 (patch)
tree9ef70f80360834d44a84b81687db32c4bddd83fc /nixos/bluetooth.nix
parente9c9db7ac6a79a86bfb1fdb9d26f794a04b74988 (diff)
downloadhome-84a718ac1b4def43028a8ec2a14ed4a94063ac09.tar.gz
repo: sync configs
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;
+ };
+}