diff options
Diffstat (limited to 'modules/mpd.nix')
| -rw-r--r-- | modules/mpd.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/mpd.nix b/modules/mpd.nix new file mode 100644 index 0000000..3c1d742 --- /dev/null +++ b/modules/mpd.nix @@ -0,0 +1,25 @@ +{ 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; + }; +} |