about summary refs log tree commit diff
path: root/users/fcuny/desktop/media.nix
blob: 9f5b93bf0c5311f40aa5a8ad1d2c3310e347cf91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, lib, pkgs, ... }:

{
  home.packages = [
    pkgs.mpd
    pkgs.ncmpcpp
    pkgs.pavucontrol
  ];

  xdg.configFile."ncmpcpp/config".source = ../configs/ncmpcpp/config;

  services.mpd = {
    enable = true;
    musicDirectory = config.xdg.userDirs.music;
    extraConfig = ''
      auto_update "yes"
      filesystem_charset "UTF-8"
      zeroconf_enabled "no"
      input {
        plugin "curl"
      }
      audio_output {
        type "pipewire"
        name "PipeWire Sound Server"
      }
      audio_output {
        type   "fifo"
        name   "visualizer"
        path   "/tmp/mpd.fifo"
        format "44100:16:2"
      }
    '';
  };
}