forked from Yuka/c3h-nixfiles
move stuff to shared-services
This commit is contained in:
parent
7549ce0707
commit
ab24240216
9 changed files with 9 additions and 8 deletions
18
shared-services/mpd.nix
Normal file
18
shared-services/mpd.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/mnt/Music";
|
||||
network.listenAddress = "any";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "pulse audio"
|
||||
server "localhost"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ config.services.mpd.network.port ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue