nixos/modules/media/mopidy/default.nix
2023-10-10 09:40:25 +04:00

28 lines
486 B
Nix

{
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 =
'';
};
};
}