aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-19 20:27:13 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-19 20:27:13 -0400
commitc1ba1dac61b8c6165480fcf15e604676214bfca6 (patch)
treecf7922e1839960d0cc65e473e7130a38d9a53201
parent9c573401a15d87719ea4876320edf1d61df0c4de (diff)
downloadhome-c1ba1dac61b8c6165480fcf15e604676214bfca6.tar.gz
modules/mpd: init
-rw-r--r--fw/home.nix1
-rw-r--r--modules/default.nix1
-rw-r--r--modules/mpd.nix25
3 files changed, 27 insertions, 0 deletions
diff --git a/fw/home.nix b/fw/home.nix
index 9991706..0f4ee8a 100644
--- a/fw/home.nix
+++ b/fw/home.nix
@@ -66,6 +66,7 @@
neovide.enable = true;
zsh.enable = true;
tofi.enable = true;
+ mpd.enable = true;
rmpc.enable = true;
};
}
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;
+ };
+}