mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
29
modules/nixos/hardware/bluetooth/default.nix
Executable file
29
modules/nixos/hardware/bluetooth/default.nix
Executable file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines) devices;
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
package = pkgs.bluez;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
Disable = "Headset";
|
||||
};
|
||||
};
|
||||
disabledPlugins = [
|
||||
"sap"
|
||||
];
|
||||
};
|
||||
};
|
||||
services.blueman.enable = if hostname == devices.deimos.name then false else true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue