Advertisement
Guest User

Untitled

a guest
Jan 29th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. To install **Firefox with Widevine support** on **Debian** using **Nix**, follow these steps:
  2.  
  3. ### 1. **Install Firefox via Nix**
  4. Install Firefox from the `nixpkgs` repository:
  5.  
  6. ```sh
  7. nix-env -iA nixpkgs.firefox
  8. ```
  9.  
  10. ### 2. **Enable Widevine DRM in Firefox**
  11. Widevine is a **proprietary DRM module**, so Firefox doesn’t ship it by default in Nix. To enable it, you need to:
  12.  
  13. #### **a) Allow DRM Content in Firefox**
  14. - Open Firefox and go to: `about:preferences`
  15. - Scroll to **Digital Rights Management (DRM) Content**
  16. - Enable **Play DRM-controlled content**
  17.  
  18. #### **b) Install Widevine Plugin**
  19. Nix provides **widevine** as a separate package, but Firefox may not recognize it automatically. Install it with:
  20.  
  21. ```sh
  22. nix-env -iA nixpkgs.widevine-cdm
  23. ```
  24.  
  25. #### **c) Manually Link Widevine**
  26. Since Firefox installed via Nix is sandboxed, you may need to manually create a symlink:
  27.  
  28. ```sh
  29. mkdir -p ~/.mozilla/plugins
  30. ln -s ~/.nix-profile/lib/mozilla/plugins/libwidevinecdm.so ~/.mozilla/plugins/
  31. ```
  32.  
  33. #### **d) Verify Widevine Installation**
  34. - Open **`about:plugins`** in Firefox.
  35. - Look for **Widevine Content Decryption Module**.
  36.  
  37. #### **e) Test DRM Video**
  38. Try playing DRM-protected content (e.g., [Netflix](https://www.netflix.com) or [Spotify Web Player](https://open.spotify.com/)). If it doesn’t work:
  39. - Restart Firefox.
  40. - Ensure `widevine-cdm` is enabled under `about:addons` → **Plugins**.
  41.  
  42. This setup should allow Firefox to use **Widevine DRM** for streaming services like Netflix, Amazon Prime, and Spotify. 🚀
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement