feat(ops/nixos/nugget): Add chromium with VAAPI patches
These patches enable hardware-accelerated video decoding, which is useful for Stadia. The main issue with this is that Hydra doesn't currently cache Chromium with these patches, which means that it is built from scratch which takes in the order of 5 hours on an otherwise unused nugget.
This commit is contained in:
parent
b4bf0b37b0
commit
066d34b50e
2 changed files with 8 additions and 2 deletions
|
@ -96,8 +96,9 @@ in depot.lib.fix(self: {
|
|||
lieer
|
||||
nuggetEmacs
|
||||
ops.kontemplate
|
||||
third_party.git
|
||||
third_party.chromiumVaapi
|
||||
third_party.ffmpeg
|
||||
third_party.git
|
||||
]) ++
|
||||
|
||||
# programs from nixpkgs
|
||||
|
@ -105,7 +106,6 @@ in depot.lib.fix(self: {
|
|||
age
|
||||
bat
|
||||
cachix
|
||||
chromium
|
||||
clang-manpages
|
||||
clang-tools
|
||||
clang_9
|
||||
|
|
6
third_party/default.nix
vendored
6
third_party/default.nix
vendored
|
@ -125,4 +125,10 @@ in exposed // {
|
|||
|
||||
# Make NixOS available
|
||||
nixos = import "${nixpkgsSrc}/nixos";
|
||||
|
||||
# Build a Chromium with VAAPI (hardware-accelerated video decoding)
|
||||
# enabled. This is useful for Stadia on desktop.
|
||||
chromiumVaapi = nixpkgs.chromium.override {
|
||||
useVaapi = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue