aboutsummaryrefslogtreecommitdiff
path: root/home/mun/programs/rmpc.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-05-24 13:57:51 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-05-24 13:57:51 +0200
commit13b246e4debe71b9dddbc69395a90e527a1e68c8 (patch)
treeb8692dda3db2adc0b6a61e63b45688a461c25274 /home/mun/programs/rmpc.nix
parent829321e06b745203506b40c42fa54609a803e82e (diff)
Added an rmpc configuration
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;
+}