diff options
Diffstat (limited to 'modules/bluetooth.nix')
-rw-r--r-- | modules/bluetooth.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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 + ]; + }; +} |