Update mopidy config to 25.11
This commit is contained in:
parent
e0ea85dcde
commit
430b1f01d2
1 changed files with 32 additions and 32 deletions
|
|
@ -1,7 +1,21 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
interfaces = import ../../interfaces.nix;
|
||||
mopidyConfig = {
|
||||
cfg = config.services.mopidy;
|
||||
in
|
||||
{
|
||||
services.mopidy = {
|
||||
enable = true;
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-iris
|
||||
mopidy-local
|
||||
mopidy-moped
|
||||
mopidy-mpd
|
||||
mopidy-muse
|
||||
mopidy-somafm
|
||||
mopidy-ytmusic
|
||||
];
|
||||
settings = {
|
||||
audio.output = "audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/run/snapserver/mopidy.fifo";
|
||||
file.enabled = false;
|
||||
local = {
|
||||
|
|
@ -30,25 +44,11 @@ let
|
|||
port = 6600;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
services.mopidy = {
|
||||
enable = true;
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-iris
|
||||
mopidy-local
|
||||
mopidy-moped
|
||||
mopidy-mpd
|
||||
mopidy-muse
|
||||
mopidy-somafm
|
||||
mopidy-ytmusic
|
||||
];
|
||||
configuration = lib.generators.toINI { } mopidyConfig;
|
||||
};
|
||||
|
||||
networking.firewall.interfaces."${interfaces.lan}".allowedTCPPorts = [
|
||||
mopidyConfig.http.port
|
||||
mopidyConfig.mpd.port
|
||||
cfg.settings.http.port
|
||||
cfg.settings.mpd.port
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue