moving BT options to own module + tweak to settings
This commit is contained in:
parent
3e8a627ba5
commit
dbaff0ff22
2 changed files with 19 additions and 21 deletions
18
core/bluetooth.nix
Normal file
18
core/bluetooth.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ];
|
||||||
|
|
||||||
|
services.blueman.enable = true; # enables blueman
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true; # Enables bluetooth
|
||||||
|
powerOnBoot = true; # Turns the bluetooth adapter on at boot
|
||||||
|
input.General = { UserspaceHID = true; }; # fix bluetooth keyboard input
|
||||||
|
settings.General = {
|
||||||
|
Experimental = true; # Displays battery charge of connected devices
|
||||||
|
FastConnectable = true; # Uses more power, but hades is a desktop
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
## Shared 'core' config options
|
## Shared 'core' config options
|
||||||
../../../core
|
../../../core
|
||||||
## Host-specific core modules
|
## Host-specific core modules
|
||||||
|
../../../core/bluetooth.nix
|
||||||
../../../core/zfs.nix
|
../../../core/zfs.nix
|
||||||
../../../core/sync.nix
|
../../../core/sync.nix
|
||||||
../../../core/gaming.nix
|
../../../core/gaming.nix
|
||||||
|
|
@ -54,26 +55,6 @@
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
||||||
## Bluetooth settings for Hades
|
|
||||||
## Also see line 103 for blueman service,
|
|
||||||
## and home/desktop/waybar.nix for tray applet.
|
|
||||||
## To do: Move bluetooth options to own module
|
|
||||||
bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
## Turns the bluetooth adapter on at boot
|
|
||||||
powerOnBoot = true;
|
|
||||||
settings.General = {
|
|
||||||
## Displays battery charge of connected devices
|
|
||||||
Experimental = true;
|
|
||||||
## Uses more power, but hades is a desktop
|
|
||||||
FastConnectable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
## To fix bluetooth keyboard input
|
|
||||||
#input.General = { UserspaceHID = true; };
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
## GPU and graphics
|
## GPU and graphics
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -97,7 +78,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
blueman.enable = true; # enables bluetooth service
|
|
||||||
xserver.videoDrivers = [ "amdgpu" ]; # sets X to use amdgpu drivers
|
xserver.videoDrivers = [ "amdgpu" ]; # sets X to use amdgpu drivers
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue