aboutsummaryrefslogtreecommitdiff
path: root/common/.flake/home/services/mpd.nix.org
blob: b985b2a60840517483f9b71813b6d88212d0e9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#+title: MPD Configuration

Set music directory and enable PipeWire output.
#+begin_src nix :tangle ~/.flake/home/services/mpd.nix :mkdirp yes
  { config, pkgs, ... }:

  {
    services.mpd = {
      enable = true;
      musicDirectory = "~/Music";
      extraConfig = ''
      audio_output {
        type "pipewire"
        name "Pipewire"
        mixer_type "hardware"
        enabled "yes"
      }
      '';
    };
  }
#+end_src