aboutsummaryrefslogtreecommitdiff
path: root/modules/mpd.nix
blob: 5cad093ba400208c27573ff6f8ceb865b7a44591 (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
31
32
{
  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 {
    home.packages = [
      pkgs.mpdscribble
    ];
    services.mpd = {
      enable = true;
      extraConfig = ''
        audio_output {
          type "pipewire"
          name "My PipeWire Output"
        }
      '';
      musicDirectory = "~/music";
    };
    # services.mpd-discord-rpc.enable = true;
  };
}