Don't try to install a system mpv

This commit is contained in:
Artemis Tosini 2022-02-03 19:38:54 +00:00
parent 46855eb036
commit f00e6bda8e
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,12 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
ffmpeg = pkgs.ffmpeg-full.override { nonfreeLicensing = true; fdkaacExtlib = true; };
scripts = with pkgs.mpvScripts; [ sponsorblock ];
mpv = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { inherit ffmpeg; }) { inherit scripts; };
in
{
home.packages = [ ffmpeg ];
programs.mpv = {
enable = true;
config = {

View file

@ -1,18 +1,14 @@
{ config, pkgs, lib, ... }:
let
llvm = pkgs.llvmPackages_12;
ffmpeg-nonfree = pkgs.ffmpeg-full.override { nonfreeLicensing = true; fdkaacExtlib = true; };
mpv = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { ffmpeg = ffmpeg-nonfree; }) { };
in
{
environment.systemPackages = (with pkgs; [
# Audiovisual
darktable
exiftool
ffmpeg-nonfree
flac
lame
mpv
opusTools
pavucontrol
youtubeDL