From a18f2791c237446a8718fed64d4cb10bbc612605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 7 Nov 2023 20:46:08 -0300 Subject: [PATCH] mpd: don't enable mpd for gnome --- user/mpd.nix | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/user/mpd.nix b/user/mpd.nix index fc16730..c100000 100644 --- a/user/mpd.nix +++ b/user/mpd.nix @@ -1,27 +1,29 @@ -{ pkgs, config, ... }: { - services.mpd = { - enable = true; - musicDirectory = config.home.homeDirectory + "/Música"; - extraConfig = '' - restore_paused "yes" - auto_update "yes" - audio_output { - type "pulse" - name "My Pulse Output" - mixer_type "hardware" - } - filesystem_charset "UTF-8" - ''; +{ lib, pkgs, config, ... }: { + config = lib.mkIf (pkgs.uservars.desktop != "gnome") { + services.mpd = { + enable = true; + musicDirectory = config.home.homeDirectory + "/Música"; + extraConfig = '' + restore_paused "yes" + auto_update "yes" + audio_output { + type "pulse" + name "My Pulse Output" + mixer_type "hardware" + } + filesystem_charset "UTF-8" + ''; + }; + services.mpdris2 = { + enable = true; + multimediaKeys = true; + notifications = true; + }; + home.packages = with pkgs; [ + musmenu + python3Packages.deemix + dzadd + mpdDup + ]; }; - services.mpdris2 = { - enable = true; - multimediaKeys = true; - notifications = true; - }; - home.packages = with pkgs; [ - musmenu - python3Packages.deemix - dzadd - mpdDup - ]; }