I’m using LibreWolf with NixOS 22.05. I can play regular youtube videos but youtube live streams and videos on odysee.com fail with LibreWolf telling me to install additional codecs.
Several help forums advised to install ffmpeg. I had it installed already but to no avail (NixOS works differently anyway).
Right now, i have LibreWolf set up like this:
programs.firejail.enable = true;
programs.firejail.wrappedBinaries = {
librewolf = {
executable = "${pkgs.lib.getBin pkgs.librewolf}/bin/librewolf";
profile = pkgs.writeText "librewolf.local" ''
noblacklist ''${DOWNLOADS}
whitelist ''${DOWNLOADS}
# Add the next line to your librewolf.local to enable native notifications.
dbus-user.talk org.freedesktop.Notifications
# Add the next line to your librewolf.local to allow inhibiting screensavers.
dbus-user.talk org.freedesktop.ScreenSaver
# Add the next lines to your librewolf.local for plasma browser integration.
dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver
include librewolf.profile
'';
};
};
I noticed that in the source file of LibreWolf there is
let
ffmpegSupport = browser.ffmpegSupport or false;
gssSupport = browser.gssSupport or false;
alsaSupport = browser.alsaSupport or false;
pipewireSupport = browser.pipewireSupport or false;
sndioSupport = browser.sndioSupport or false;
jackSupport = browser.jackSupport or false;
# PCSC-Lite daemon (services.pcscd) also must be enabled for firefox to access smartcards
smartcardSupport = cfg.smartcardSupport or false;
Would it help to enable them? How do i enable them?
I’m still learning Nix and tried the following:
nixpkgs.config = {
allowUnfree = true;
librewolf = {
ffmpegSupport = true;
pipewireSupport = true;
};
};
This didn’t help but also didn’t throw an error (i was quite surprised ).
Does someone know how to add additional codecs to Firefox / LibreWolf in NixOS?