diff --git a/modules/audio.nix b/modules/audio.nix index c039ed2..2b7b1f1 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -4,6 +4,13 @@ let soundcloud_token = builtins.readFile /home/coolneng/.config/mopidy/soundcloud-auth; + fixed-mopidy-youtube = pkgs.mopidy-youtube.overrideAttrs (old: rec { + patchPhase = '' + sed s/bs4/beautifulsoup4/ -i setup.cfg + sed s/"PREF=hl=en;"/"PREF=hl=en; CONSENT=YES+20210329;"/ -i mopidy_youtube/backend.py + ''; + }); + in { # Configure pipewire as sound server services.pipewire = { @@ -38,7 +45,7 @@ in { extensionPackages = with pkgs; [ mopidy-mpd mopidy-soundcloud - mopidy-youtube + fixed-mopidy-youtube mopidy-somafm mopidy-local ];