refactor(emacs): Simpler architecture for msyds emacs
This commit is contained in:
23
modules/nixos/bluetooth.nix
Normal file
23
modules/nixos/bluetooth.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.bluetooth;
|
||||
in {
|
||||
options.sydnix.bluetooth = {
|
||||
enable = lib.mkEnableOption "BlueTooth";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.blueman.enable = true;
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
# Show battery charge of Bluetooth devices
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user