diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-05-26 00:18:45 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-05-26 00:18:45 -0400 |
| commit | 84a718ac1b4def43028a8ec2a14ed4a94063ac09 (patch) | |
| tree | 9ef70f80360834d44a84b81687db32c4bddd83fc /nixos/bluetooth.nix | |
| parent | e9c9db7ac6a79a86bfb1fdb9d26f794a04b74988 (diff) | |
| download | home-84a718ac1b4def43028a8ec2a14ed4a94063ac09.tar.gz | |
repo: sync configs
Diffstat (limited to 'nixos/bluetooth.nix')
| -rw-r--r-- | nixos/bluetooth.nix | 19 |
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; + }; +} |