From 7dd785b1005aec643004c06eaa7af690b00cb48f Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Sun, 16 Aug 2026 21:55:33 +0700 Subject: . --- nixos/modules/features/mpd/default.nix | 43 ---------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 nixos/modules/features/mpd/default.nix (limited to 'nixos/modules/features/mpd/default.nix') 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 -- cgit v1.2.3