mpd: Only enable when gui is enabled

This commit is contained in:
Simon Bruder 2021-01-30 13:27:29 +01:00
parent 82d5a24dfa
commit d61fc70f23
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
# I only use mpd on gui systems. If I should ever need it on a headless system,
# I will add a separate option.
lib.mkIf config.sbruder.gui.enable {
services.mpd = {
enable = true;
musicDirectory = "~/Music";