aboutsummaryrefslogtreecommitdiff
path: root/home/mun/programs/rmpc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/mun/programs/rmpc.nix')
-rw-r--r--home/mun/programs/rmpc.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/home/mun/programs/rmpc.nix b/home/mun/programs/rmpc.nix
new file mode 100644
index 0000000..12414a6
--- /dev/null
+++ b/home/mun/programs/rmpc.nix
@@ -0,0 +1,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;
+}