<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Chromium%2Fen</id>
	<title>Chromium/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Chromium%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Chromium/en&amp;action=history"/>
	<updated>2026-06-01T07:37:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Chromium/en&amp;diff=32295&amp;oldid=prev</id>
		<title>FuzzyBot: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Chromium/en&amp;diff=32295&amp;oldid=prev"/>
		<updated>2026-05-31T15:41:09Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== NixOS ===&lt;br /&gt;
&lt;br /&gt;
Add {{nixos:package|chromium}} to {{NixOS Manual|name=systemPackages|anchor=#sec-package-management}}.&lt;br /&gt;
&lt;br /&gt;
== Updating browser policies ==&lt;br /&gt;
&lt;br /&gt;
In Chromium, policy settings are accessible via {{Ic|chrome://policy}}. They allow the user to change enterprise policies affecting things like&lt;br /&gt;
&lt;br /&gt;
* Creating webapps when the browser is installed&lt;br /&gt;
* Finding and downloading browser extensions automatically&lt;br /&gt;
* Enabling or disabling the dinosaur game when the device is offline&lt;br /&gt;
* Disable screenshots to be taken with browser extensions&lt;br /&gt;
* Block all downloads from the browser (if you want to do that for some reason)&lt;br /&gt;
* and more!&lt;br /&gt;
&lt;br /&gt;
A full list of policies can be found at [https://chromeenterprise.google/policies/ Chrome Enterprise Policy List &amp;amp; Management].&lt;br /&gt;
&lt;br /&gt;
=== Natively Supported Policies ===&lt;br /&gt;
&lt;br /&gt;
By default NixOS provides a few policies that can be enabled directly, a simple example is given below to understand how these are implemented&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;  programs.chromium = {&lt;br /&gt;
    enable = true;&lt;br /&gt;
    homepageLocation = &amp;quot;https://www.startpage.com/&amp;quot;;&lt;br /&gt;
    extensions = [&lt;br /&gt;
      &amp;quot;eimadpbcbfnmbkopoojfekhnkhdbieeh;https://clients2.google.com/service/update2/crx&amp;quot; # dark reader&lt;br /&gt;
      &amp;quot;aapbdbdomjkkjkaonfhkkikfgjllcleb;https://clients2.google.com/service/update2/crx&amp;quot; # google translate&lt;br /&gt;
    ];&lt;br /&gt;
    extraOpts = {&lt;br /&gt;
      &amp;quot;WebAppInstallForceList&amp;quot; = [&lt;br /&gt;
        {&lt;br /&gt;
          &amp;quot;custom_name&amp;quot; = &amp;quot;Youtube&amp;quot;;&lt;br /&gt;
          &amp;quot;create_desktop_shortcut&amp;quot; = false;&lt;br /&gt;
          &amp;quot;default_launch_container&amp;quot; = &amp;quot;window&amp;quot;;&lt;br /&gt;
          &amp;quot;url&amp;quot; = &amp;quot;https://youtube.com&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
      ];&lt;br /&gt;
    };&lt;br /&gt;
  };&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* {{Ic|homepageLocation}} option allows you to set the site that the homepage will open on&lt;br /&gt;
* {{Ic|extensions}} allows for the download of extensions directly in the browser through a simple list of the extension ID&amp;#039;s that can be obtained from the [https://chromewebstore.google.com/ Chrome Web Store] by opening an extension page and copying the last part of the URL&lt;br /&gt;
** In the example however there is another component, the download source from which the extensions will be downloaded&lt;br /&gt;
** The URL provided in the list is the link that is used by google for managing, checking and updating extensions&lt;br /&gt;
** So the method of just placing the extension ID can work like this: {{Ic|&amp;quot;fnpbehpgglbfnpimkachnpnecjncndgm&amp;quot;}}&lt;br /&gt;
** But just in case that method does not automatically function the second method is shown above, where you place {{Ic|;}} and then the URL {{Ic|https //clients2.google.com/service/update2/crx}} to explicitly tell NixOS where to install the extension from&lt;br /&gt;
* There are many more options that are natively supported and you can learn about them through {{Ic|man configuration.nix}}&lt;br /&gt;
* But as shown above there is also an {{Ic|extraOpts}} option and that is used for policies that are not supported for direct setup, such as the policy to install web-apps&lt;br /&gt;
&lt;br /&gt;
=== Non-natively Supported Policies ===&lt;br /&gt;
&lt;br /&gt;
There are hundreds of policies in Chromium based browsers, and not all have direct methods to set them. The {{Ic|extraOpts}} option allows for the declaration of all the other policies.&lt;br /&gt;
&lt;br /&gt;
There is no single place to find all Chromium policies, but these are some places to look;&lt;br /&gt;
&lt;br /&gt;
* Commonly used policies are present and documented within {{Ic|man configuration.nix}} under {{Ic|programs.chromium}}.&lt;br /&gt;
* You can navigate to {{Ic|chrome://policy}} and enable &amp;quot;Show policies with no value set&amp;quot; to see all available keys. Clicking a policy name opens its specific definition and usage details.&lt;br /&gt;
* The most up to date policies for Chromium are available in the [https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/pref_names.h source code.]&lt;br /&gt;
&lt;br /&gt;
== Accelerated video playback ==&lt;br /&gt;
&lt;br /&gt;
Make sure [[Special:MyLanguage/Accelerated Video Playback|Accelerated Video Playback]] is setup on the system properly. Check {{ic|chrome://gpu}} to see if Chromium has enabled hardware acceleration.&lt;br /&gt;
&lt;br /&gt;
If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the CLI:&lt;br /&gt;
&lt;br /&gt;
{{file|/etc/nixos/configuration.nix|nix|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  environment.systemPackages = with pkgs; [&lt;br /&gt;
    (chromium.override {&lt;br /&gt;
      commandLineArgs = [&lt;br /&gt;
        &amp;quot;--enable-features=AcceleratedVideoEncoder&amp;quot;&lt;br /&gt;
        &amp;quot;--ignore-gpu-blocklist&amp;quot;&lt;br /&gt;
        &amp;quot;--enable-zero-copy&amp;quot;&lt;br /&gt;
      ];&lt;br /&gt;
    })&lt;br /&gt;
  ];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
In some cases, {{ic|chrome://gpu}} will show Video Decode as enabled, but Video Acceleration Information as blank, with {{ic|chrome://media-internals}} using the FFmpeg Video Decoder (software decoding). If this happens, try to enable the following features:&lt;br /&gt;
&lt;br /&gt;
{{file|/etc/nixos/configuration.nix|nix|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  environment.systemPackages = with pkgs; [&lt;br /&gt;
    (chromium.override {&lt;br /&gt;
      commandLineArgs = [&lt;br /&gt;
        &amp;quot;--enable-features=AcceleratedVideoEncoder,VaapiOnNvidiaGPUs,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE&amp;quot;&lt;br /&gt;
        &amp;quot;--enable-features=VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport&amp;quot;&lt;br /&gt;
        &amp;quot;--enable-features=UseMultiPlaneFormatForHardwareVideo&amp;quot;&lt;br /&gt;
        &amp;quot;--ignore-gpu-blocklist&amp;quot;&lt;br /&gt;
        &amp;quot;--enable-zero-copy&amp;quot;&lt;br /&gt;
      ];&lt;br /&gt;
    })&lt;br /&gt;
  ];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Enabling native Wayland support ==&lt;br /&gt;
&lt;br /&gt;
You can enable native Wayland support in all Chromium based and most Electron apps by setting the `NIXOS_OZONE_WL` environment variable to `1`.&lt;br /&gt;
&lt;br /&gt;
== Enabling DRM (Widevine support) ==&lt;br /&gt;
&lt;br /&gt;
By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the proprietary Widevine blob from Nixpkgs:&lt;br /&gt;
&lt;br /&gt;
{{file|/etc/nixos/configuration.nix|nix|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  environment.systemPackages = with pkgs; [&lt;br /&gt;
    (chromium.override { enableWideVine = true; })&lt;br /&gt;
  ];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== KeePassXC support in Flatpak ==&lt;br /&gt;
&lt;br /&gt;
To enable browser integration between KeePassXC and Chromium-based browsers when running in Flatpak, configure the following filesystem access:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;toml&amp;quot;&amp;gt;# NativeMessagingHost directory (browser-specific)&lt;br /&gt;
# Brave Browser&lt;br /&gt;
xdg-config/BraveSoftware/Brave-Browser/NativeMessagingHosts:ro&lt;br /&gt;
# Chromium&lt;br /&gt;
xdg-config/chromium/NativeMessagingHosts:ro&lt;br /&gt;
# Google Chrome&lt;br /&gt;
xdg-config/google-chrome/NativeMessagingHosts:ro&lt;br /&gt;
&lt;br /&gt;
# KeePassXC server socket and Nix store&lt;br /&gt;
xdg-run/app/org.keepassxc.KeePassXC/org.keepassxc.KeePassXC.BrowserServer&lt;br /&gt;
/nix/store:ro&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using libc memory allocator ==&lt;br /&gt;
&lt;br /&gt;
Chromium may not work when an alternative system-wide memory allocator like scudo is used. To use libc on Chromium, the following firejail wrap is required:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
programs.firejail = {&lt;br /&gt;
  enable = true;&lt;br /&gt;
  wrappedBinaries = {&lt;br /&gt;
    chromium = {&lt;br /&gt;
      executable = &amp;quot;${pkgs.chromium}/bin/chromium-browser&amp;quot;;&lt;br /&gt;
      profile = &amp;quot;${pkgs.firejail}/etc/firejail/chromium-browser.profile&amp;quot;;&lt;br /&gt;
      extraArgs = [&lt;br /&gt;
        &amp;quot;--blacklist=/etc/ld-nix.so.preload&amp;quot;&lt;br /&gt;
      ];&lt;br /&gt;
    };&lt;br /&gt;
  };&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Applications]]&lt;br /&gt;
[[Category:Web Browser{{#translation:}}]]&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>