aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/home/mpd.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-16 02:11:26 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-16 02:11:26 -0800
commit1a3486d77574c06b395ab6cda41084f5ed24a3f4 (patch)
tree69d1051bd14a0c3cb374f84a8c06cb655eba509b /nix/modules/home/mpd.nix
parent2dff9d2b61244fed49136028d0e0f6ae3ae759cf (diff)
modularized nix configuration; builds correctly
Diffstat (limited to 'nix/modules/home/mpd.nix')
-rw-r--r--nix/modules/home/mpd.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/modules/home/mpd.nix b/nix/modules/home/mpd.nix
index eee23b3..434387c 100644
--- a/nix/modules/home/mpd.nix
+++ b/nix/modules/home/mpd.nix
@@ -1,11 +1,12 @@
{ lib, config, ... }:
{
- enable = lib.mkDefault config.monorepo.profiles.home.music.enable;
- dbFile = "/home/${config.vars.userName}/.config/mpd/db";
- dataDir = "/home/${config.vars.userName}/.config/mpd/";
+ services.mpd = {
+ enable = lib.mkDefault config.monorepo.profiles.music.enable;
+ dbFile = "/home/${config.monorepo.vars.userName}/.config/mpd/db";
+ dataDir = "/home/${config.monorepo.vars.userName}/.config/mpd/";
network.port = 6600;
- musicDirectory = "/home/${config.vars.userName}/music";
- playlistDirectory = "/home/${config.vars.userName}/.config/mpd/playlists";
+ musicDirectory = "/home/${config.monorepo.vars.userName}/music";
+ playlistDirectory = "/home/${config.monorepo.vars.userName}/.config/mpd/playlists";
network.listenAddress = "0.0.0.0";
extraConfig = ''
audio_output {
@@ -24,4 +25,5 @@
tags "yes" # httpd supports sending tags to listening streams.
}
'';
+ };
}