bluetooth mode... activated
This commit is contained in:
parent
1182d7e1ac
commit
642bea2f41
2 changed files with 20 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
security.useDoas = true;
|
||||
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
pipewire.enable = true;
|
||||
};
|
||||
dev = {
|
||||
|
@ -45,7 +46,6 @@
|
|||
hyprpaper.enable = true;
|
||||
|
||||
polkit-gnome.enable = true;
|
||||
|
||||
dunst.enable = true;
|
||||
rofi.enable = true;
|
||||
nwg-drawer.enable = true;
|
||||
|
|
19
modules/hardware/bluetooth.nix
Normal file
19
modules/hardware/bluetooth.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.hardware.bluetooth;
|
||||
in {
|
||||
options.modules.hardware.bluetooth = {
|
||||
enable = mkEnableOption "Enable bluetooth, a short-range communication technology";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
|
||||
# frontend
|
||||
services.blueman.enable = true;
|
||||
hm.services.blueman-applet.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue