fix: conditionally enable 'mpris-proxy' in audio module

This commit is contained in:
2026-04-01 21:55:46 +02:00
parent 3478fac832
commit 4aee96241c
2 changed files with 3 additions and 13 deletions

View File

@@ -1,5 +1,7 @@
{ pkgs, ... }:
{ osConfig, pkgs, ... }:
{
home.packages = with pkgs; [ pulsemixer ];
services.mpris-proxy.enable = osConfig.hardware.bluetooth.enable or false;
}

View File

@@ -1,5 +1,3 @@
{ pkgs, ... }:
{
hardware.bluetooth = {
enable = true;
@@ -14,14 +12,4 @@
};
};
};
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [
"network.target"
"sound.target"
];
wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
}