From b7e84fa6048007cda7e6c8226e28bc2db90f792a Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sat, 28 Sep 2024 00:01:09 -0500 Subject: add file extensions to files --- nixos/.flake/home/services/mpd.nix.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nixos/.flake/home/services/mpd.nix.org (limited to 'nixos/.flake/home/services/mpd.nix.org') diff --git a/nixos/.flake/home/services/mpd.nix.org b/nixos/.flake/home/services/mpd.nix.org new file mode 100644 index 0000000..b985b2a --- /dev/null +++ b/nixos/.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 -- cgit v1.2.3