aboutsummaryrefslogtreecommitdiff
path: root/home/mun/programs/rmpc.nix
blob: 12414a6d5cf48125367935c486406c982d56d66c (plain)
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
{pkgs, ...}: {
  # Setup MPD as the backend of RMPC
  services.mpd = {
    enable = true;
    user = "mun";
    musicDirectory = "/home/mun//Music";
    extraConfig = ''
      audio_output {
      	type "pipewire"
      	name "PipeWire"
      }
    '';
  };
  # Install rmpc from unstable nix
  home.packages = with pkgs.unstable;
    [
      rmpc
    ] # Add cava and libnotify as a stable package for config dependencies
    ++ (with pkgs; [
      cava
      libnotify
    ]);
  # Write the rmpc config
  xdg.configFile."rmpc/config.ron".source = ./rmpc/config.ron;
}