From 31962ff51e030ae2afc843662ccf9088e4c1f7d5 Mon Sep 17 00:00:00 2001 From: kat witch Date: Thu, 6 May 2021 16:49:14 +0100 Subject: [PATCH] profiles/gui: MPD ports --- profiles/gui/nixos/default.nix | 1 + profiles/gui/nixos/mpd.nix | 7 +++++++ profiles/gui/nixos/music.nix | 7 ------- users/kat/home/media/mpd.nix | 5 ++++- 4 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 profiles/gui/nixos/mpd.nix delete mode 100644 profiles/gui/nixos/music.nix diff --git a/profiles/gui/nixos/default.nix b/profiles/gui/nixos/default.nix index 10774989..f8f2ea57 100644 --- a/profiles/gui/nixos/default.nix +++ b/profiles/gui/nixos/default.nix @@ -8,6 +8,7 @@ ./firefox.nix ./dns.nix ./nfs.nix + ./mpd.nix ./nixpkgs.nix ./mingetty.nix ./sound.nix diff --git a/profiles/gui/nixos/mpd.nix b/profiles/gui/nixos/mpd.nix new file mode 100644 index 00000000..8a9f4f34 --- /dev/null +++ b/profiles/gui/nixos/mpd.nix @@ -0,0 +1,7 @@ +{ config, lib, ... }: + +with lib; + +{ + katnet.private.tcp.ports = [ 6600 32101 ]; +} diff --git a/profiles/gui/nixos/music.nix b/profiles/gui/nixos/music.nix deleted file mode 100644 index 4944f7cd..00000000 --- a/profiles/gui/nixos/music.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, lib, ... }: - -with lib; - -{ - katnet.private.tcp.ports = singleton 32101; -} diff --git a/users/kat/home/media/mpd.nix b/users/kat/home/media/mpd.nix index c4356ed4..43b070d6 100644 --- a/users/kat/home/media/mpd.nix +++ b/users/kat/home/media/mpd.nix @@ -4,7 +4,10 @@ services.mpd = { enable = true; package = pkgs.mpd-youtube-dl; - network.startWhenNeeded = true; + network = { + startWhenNeeded = true; + listenAddress = "::"; + }; musicDirectory = "/home/kat/media-share/music"; extraConfig = '' max_output_buffer_size "32768"