commit 3f5cd8e80f2e45d1647ec6f426baecae346364e8
parent 314c9a6c9c91d6a24084274849b41604e276e63a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 9 Oct 2021 20:40:46 +0200
parent 314c9a6c9c91d6a24084274849b41604e276e63a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 9 Oct 2021 20:40:46 +0200
bluetooth: create
1 file changed, 39 insertions(+), 0 deletions(-)
diff --git a/configurations/bluetooth.nix b/configurations/bluetooth.nix @@ -0,0 +1,39 @@ +{ lib, config, pkgs, ... }: + +{ + hardware.bluetooth = { + enable = true; + powerOnBoot = false; + }; + + services.blueman = { + enable = true; + }; + + home-manager.users.leah = { + home.packages = [ pkgs.blueman ]; + systemd.user.services = { + blueman-applet = { + Unit = { + Description = "Blueman applet"; + Requires = [ "waybar.service" ]; + After = [ "graphical-session-pre.target" "tray.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Service.ExecStart = "${pkgs.blueman}/bin/blueman-applet"; + Install.WantedBy = [ "graphical-session.target" ]; + }; + + mpris-proxy = { + Unit = { + Description = "Mpris proxy"; + After = [ "network.target" "sound.target" ]; + }; + + Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy"; + Install.WantedBy = [ "default.target" ]; + }; + }; + }; +}