From ee780fe2d1853e4e78d4ce1ffc84cb9f06bee1c9 Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Fri, 29 Oct 2021 00:20:09 +0200 Subject: [PATCH] Add mpris-proxy --- nixos/dustbowl.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/dustbowl.nix b/nixos/dustbowl.nix index 18db5d0..bf3096d 100644 --- a/nixos/dustbowl.nix +++ b/nixos/dustbowl.nix @@ -205,6 +205,19 @@ }; }; + systemd.user.services.mpris-proxy = { + description = "Bluetooth mpris-player"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + serviceConfig = { + ExecStart = '' + ${pkgs.bluez}/bin/mpris-proxy + ''; + RestartSec = 3; + Restart = "always"; + }; + }; + # Hardware # Enable sound. sound.enable = true;