added bluetooth to harmatan.
This commit is contained in:
parent
b7c13daba6
commit
dc8df3060a
2 changed files with 45 additions and 0 deletions
44
configs/nixos/bluetooth.nix
Normal file
44
configs/nixos/bluetooth.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
# Shows battery charge of connected devices on supported
|
||||||
|
# Bluetooth adapters. Defaults to 'false'.
|
||||||
|
# Experimental = true;
|
||||||
|
# When enabled other devices can connect faster to us, however
|
||||||
|
# the tradeoff is increased power consumption. Defaults to
|
||||||
|
# 'false'.
|
||||||
|
# FastConnectable = true;
|
||||||
|
};
|
||||||
|
Policy = {
|
||||||
|
# Enable all controllers when they are found. This includes
|
||||||
|
# adapters present on start as well as adapters that are plugged
|
||||||
|
# in later on. Defaults to 'true'.
|
||||||
|
AutoEnable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# services.blueman.enable = true;
|
||||||
|
home-manager.users.${config.host.details.user} = {
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs;
|
||||||
|
lib.mkMerge [
|
||||||
|
(
|
||||||
|
lib.mkIf (osConfig.host.details.gui.enable)
|
||||||
|
[ ]
|
||||||
|
)
|
||||||
|
[ bluetui ]
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -21,6 +21,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
../../configs/nixos/syncthing.nix
|
../../configs/nixos/syncthing.nix
|
||||||
../../configs/nixos/touchpad.nix
|
../../configs/nixos/touchpad.nix
|
||||||
../../configs/nixos/i3
|
../../configs/nixos/i3
|
||||||
|
../../configs/nixos/bluetooth.nix
|
||||||
../../roles/nixos/gaming.nix
|
../../roles/nixos/gaming.nix
|
||||||
../../roles/nixos/power-saving.nix
|
../../roles/nixos/power-saving.nix
|
||||||
({
|
({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue