Initial commit
This commit is contained in:
29
modules/desktop/bluetooth.nix
Normal file
29
modules/desktop/bluetooth.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ 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" ];
|
||||
}
|
Reference in New Issue
Block a user