aboutsummaryrefslogtreecommitdiff
path: root/modules/mpd.nix
blob: 1be4804c95dc0cfd1f9c5d1ca7f085170a31a949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.modules.mpd;
  scheme = config.modules.scheme;
in
{
  options.modules.mpd = {
    enable = lib.mkEnableOption "mpd";
  };

  config = lib.mkIf cfg.enable {
    services.mpd = {
      enable = true;
      extraConfig = ''
        audio_output {
          type "pipewire"
          name "My PipeWire Output"
        }
      '';
      musicDirectory = "~/music";
    };
    services.mpd-discord-rpc.enable = true;
    services.mpdscribble.enable = true;
  };
}