mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop/Multimedia] do not "overoptimise" ffmpeg, as it is probably useless
This commit is contained in:
parent
dfefbefb99
commit
db87939151
1 changed files with 4 additions and 12 deletions
|
|
@ -12,27 +12,19 @@ let
|
||||||
|
|
||||||
# Multimedia Packages
|
# Multimedia Packages
|
||||||
|
|
||||||
myFFmpeg = let
|
ffmpeg-full-unfree = let
|
||||||
withUnfree = pkgs.unstable.ffmpeg-full.override {
|
withUnfree = pkgs.unstable.ffmpeg-full.override {
|
||||||
withUnfree = true;
|
withUnfree = true;
|
||||||
withTensorflow = false;
|
withTensorflow = false;
|
||||||
};
|
};
|
||||||
in withUnfree;
|
in withUnfree;
|
||||||
|
|
||||||
|
|
||||||
myFFmpeg_opt = config.aviallon.optimizations.optimizePkg { lto = false; } myFFmpeg;
|
|
||||||
|
|
||||||
|
|
||||||
#ffmpeg_4 = config.aviallon.optimizations.optimizePkg { } pkgs.ffmpeg_4;
|
|
||||||
#obs-studio = pkgs.obs-studio.override { inherit ffmpeg_4; };
|
|
||||||
#myWrapOBS = pkgs.wrapOBS.override { inherit obs-studio; };
|
|
||||||
myWrapOBS = pkgs.wrapOBS;
|
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable && !generalCfg.minimal) {
|
config = mkIf (cfg.enable && !generalCfg.minimal) {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
myFFmpeg_opt
|
ffmpeg-full-unfree
|
||||||
krita
|
krita
|
||||||
(myWrapOBS { plugins = with obs-studio-plugins; [
|
(pkgs.wrapOBS { plugins = with obs-studio-plugins; [
|
||||||
obs-pipewire-audio-capture
|
obs-pipewire-audio-capture
|
||||||
]; })
|
]; })
|
||||||
|
|
||||||
|
|
@ -44,7 +36,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [(final: prev: {
|
nixpkgs.overlays = [(final: prev: {
|
||||||
myFFmpeg = myFFmpeg_opt;
|
inherit ffmpeg-full-unfree;
|
||||||
})];
|
})];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue