summaryrefslogtreecommitdiff
path: root/nixos/modules/features/mpd
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-08-16 21:55:33 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-08-16 21:55:33 +0700
commit7dd785b1005aec643004c06eaa7af690b00cb48f (patch)
treebd8700ef4dfb8c0a1315f4eb41784d1d4ba43001 /nixos/modules/features/mpd
parent100094fe8b9398c083fa6351925a00f5b3a9d36a (diff)
.
Diffstat (limited to 'nixos/modules/features/mpd')
-rw-r--r--nixos/modules/features/mpd/default.nix43
1 files changed, 0 insertions, 43 deletions
diff --git a/nixos/modules/features/mpd/default.nix b/nixos/modules/features/mpd/default.nix
deleted file mode 100644
index a339622..0000000
--- a/nixos/modules/features/mpd/default.nix
+++ /dev/null
@@ -1,43 +0,0 @@
-{ pkgs, ... }:
-
-{
- # MPD server (music player daemon). The audio_output points at PipeWire
- # through its PulseAudio compatibility layer, since desktop audio is handled
- # by modules/system/audio.
- services.mpd = {
- enable = true;
- user = "seraphim";
- openFirewall = false;
- settings = {
- music_directory = "/mnt/giga/music";
- bind_to_address = "any";
- port = 6600;
- auto_update = "yes";
- audio_output = [
- {
- type = "pulse";
- name = "PipeWire Output";
- mixer_type = "hardware";
- }
- ];
- };
- };
-
- # MPD runs as a system service, so it needs the per-user runtime dir to
- # reach the PipeWire socket.
- systemd.services.mpd.environment = {
- XDG_RUNTIME_DIR = "/run/user/1000";
- };
-
- # mpd-mpris bridges MPD to the MPRIS media control interface (used by
- # Waybar/media keys). Lives here because it only matters when MPD is on.
- systemd.user.services.mpd-mpris = {
- description = "MPD MPRIS Service for Waybar";
- wantedBy = [ "default.target" ];
- after = [ "graphical-session.target" ];
- serviceConfig = {
- ExecStart = "${pkgs.mpd-mpris}/bin/mpd-mpris -network tcp -host 127.0.0.1 -port 6600";
- Restart = "on-failure";
- };
- };
-} \ No newline at end of file