add mopidy

This commit is contained in:
Sakooooo 2023-10-10 09:21:57 +04:00
parent 95c6b11905
commit a31aa50763
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 29 additions and 0 deletions

View file

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

View file

@ -0,0 +1,28 @@
{
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 =
'';
};
};
}

View file