about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-17T11·43+0100
committerVincent Ambo <tazjin@google.com>2020-04-17T11·43+0100
commit066d34b50e1bc366b8883b2b72c95308e440460d (patch)
tree2911be8568a6126233acd7ed360bbbb27cf43485 /third_party
parentb4bf0b37b0910742b4d8aabdbd54f03a371ae242 (diff)
feat(ops/nixos/nugget): Add chromium with VAAPI patches r/630
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.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix
index 87cdc5c821..4a9363c49f 100644
--- a/third_party/default.nix
+++ b/third_party/default.nix
@@ -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;
+  };
 }