This commit is contained in:
Sakooooo 2023-10-10 09:40:13 +04:00
parent 09adab0343
commit 0ed7ff8d73
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 0 additions and 38 deletions

View file

@ -102,7 +102,6 @@
media = {
mpd.enable = false;
ncmpcpp.enable = true;
mopidy.enable = false;
};
work = {
libreoffice.enable = true;

View file

@ -2,6 +2,5 @@
imports = [
./mpd
./ncmpcpp
./mopidy
];
}

View file

@ -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
'';
};
};
}