From c1ba1dac61b8c6165480fcf15e604676214bfca6 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Sat, 19 Jul 2025 20:27:13 -0400 Subject: modules/mpd: init --- modules/default.nix | 1 + modules/mpd.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/mpd.nix (limited to 'modules') diff --git a/modules/default.nix b/modules/default.nix index d429b21..f3ac693 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -27,6 +27,7 @@ ./zathura.nix ./zoxide.nix ./firefox.nix + ./mpd.nix ./rmpc.nix ]; } 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; + }; +} -- cgit v1.2.3