okay
This commit is contained in:
parent
09adab0343
commit
0ed7ff8d73
4 changed files with 0 additions and 38 deletions
|
@ -102,7 +102,6 @@
|
|||
media = {
|
||||
mpd.enable = false;
|
||||
ncmpcpp.enable = true;
|
||||
mopidy.enable = false;
|
||||
};
|
||||
work = {
|
||||
libreoffice.enable = true;
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
imports = [
|
||||
./mpd
|
||||
./ncmpcpp
|
||||
./mopidy
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
outputs,
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.media.mopidy;
|
||||
in {
|
||||
options.modules.media.mopidy = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.mopidy = {
|
||||
enable = true;
|
||||
extensionPackages = [pkgs.mopidy-mpd pkgs.mopidy-jellyfin];
|
||||
configuration = ''
|
||||
[jellyfin]
|
||||
hostname = https://jellyfin.sako.box
|
||||
username = sako
|
||||
password =
|
||||
libraries = Music
|
||||
albumartistsort = False
|
||||
album_format = {ProductionYear} - {Name}
|
||||
|
||||
[mpd]
|
||||
enabled = true
|
||||
host = 127.0.0.1
|
||||
connection_timeout = 300
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue