mpd stuff
This commit is contained in:
parent
da5f979a59
commit
edb92986fc
10 changed files with 362 additions and 16 deletions
35
modules/home/mpd.nix
Normal file
35
modules/home/mpd.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
rmpc
|
||||
termusic
|
||||
mpc
|
||||
];
|
||||
|
||||
services = {
|
||||
mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/mnt/filez/media/Music";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "Default Playback"
|
||||
}
|
||||
'';
|
||||
network.startWhenNeeded = true;
|
||||
};
|
||||
mpdris2 = {
|
||||
enable = true;
|
||||
};
|
||||
playerctld = {
|
||||
enable = true;
|
||||
package = pkgs.playerctl;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."rmpc/" = {
|
||||
source = ./rmpc;
|
||||
recursive = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue