add mopidy
This commit is contained in:
parent
95c6b11905
commit
a31aa50763
3 changed files with 29 additions and 0 deletions
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./mpd
|
||||
./ncmpcpp
|
||||
./mopidy
|
||||
];
|
||||
}
|
||||
|
|
28
modules/media/mopidy/default.nix
Normal file
28
modules/media/mopidy/default.nix
Normal 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 =
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
0
modules/media/mopidy/default.nix~
Normal file
0
modules/media/mopidy/default.nix~
Normal file
Loading…
Reference in a new issue