also enable bluetooth on t470

This commit is contained in:
Khaïs COLIN 2024-12-07 13:37:27 +01:00
parent f4074d77eb
commit d1abdbd96f
2 changed files with 22 additions and 22 deletions

View file

@ -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";
};
}

View file

@ -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 = [