30 lines
678 B
Nix
30 lines
678 B
Nix
|
{ pkgs, ... }: {
|
||
|
hardware.bluetooth = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
General = {
|
||
|
Enable = "Source,Sink,Media,Socket";
|
||
|
};
|
||
|
Policy = {
|
||
|
AutoEnable = "true";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
imp.dirs = [ "/var/lib/bluetooth" ];
|
||
|
|
||
|
hm = {
|
||
|
home.packages = with pkgs; [ bluetuith ];
|
||
|
systemd.user.enable = true;
|
||
|
systemd.user.services.mpris-proxy = {
|
||
|
Unit = {
|
||
|
Description = "Mpris proxy";
|
||
|
After = [ "bluetooth.target" "sound.target" ];
|
||
|
};
|
||
|
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
|
||
|
Install.WantedBy = [ "default.target" ];
|
||
|
};
|
||
|
};
|
||
|
imp.home.files = [ ".cache/.bluetoothctl_history" ];
|
||
|
}
|