diff options
Diffstat (limited to 'common/.flake/home/services/mpd.nix.org')
-rw-r--r-- | common/.flake/home/services/mpd.nix.org | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/.flake/home/services/mpd.nix.org b/common/.flake/home/services/mpd.nix.org new file mode 100644 index 0000000..b985b2a --- /dev/null +++ b/common/.flake/home/services/mpd.nix.org @@ -0,0 +1,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 |