also enable bluetooth on t470
This commit is contained in:
parent
f4074d77eb
commit
d1abdbd96f
2 changed files with 22 additions and 22 deletions
22
common.nix
22
common.nix
|
|
@ -301,4 +301,26 @@
|
|||
pkgs.xorg.libxcb
|
||||
pkgs.xorg.libXrandr
|
||||
];
|
||||
|
||||
# bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
# gui for configuration
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.settings = {
|
||||
General = {
|
||||
# support for modern headsetes
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
# show battery level
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
|
||||
# bluetooth mpris play-pause media control
|
||||
systemd.user.services.mpris-proxy = {
|
||||
description = "Mpris proxy";
|
||||
after = [ "network.target" "sound.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
22
void.nix
22
void.nix
|
|
@ -55,28 +55,6 @@
|
|||
# mount external drive
|
||||
fileSystems."/external".label = "external";
|
||||
|
||||
# bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
# gui for configuration
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth.settings = {
|
||||
General = {
|
||||
# support for modern headsetes
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
# show battery level
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
|
||||
# bluetooth mpris play-pause media control
|
||||
systemd.user.services.mpris-proxy = {
|
||||
description = "Mpris proxy";
|
||||
after = [ "network.target" "sound.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||||
};
|
||||
|
||||
# backup
|
||||
services.borgbackup.jobs."external" = {
|
||||
paths = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue