feat(audio): add enable option

This commit is contained in:
2026-05-22 10:21:39 +02:00
parent fef88cf1a4
commit cff26bd47b
4 changed files with 27 additions and 9 deletions

View File

@@ -1,7 +1,19 @@
{ osConfig, pkgs, ... }:
{
home.packages = with pkgs; [ pulsemixer ];
config,
lib,
pkgs,
osConfig,
...
}:
services.mpris-proxy.enable = osConfig.hardware.bluetooth.enable or false;
let
cfg = config.audio;
in
{
options.audio.enable = lib.mkEnableOption "audio";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ pulsemixer ];
services.mpris-proxy.enable = osConfig.hardware.bluetooth.enable or false;
};
}