Chromium: Difference between revisions

Ardenet (talk | contribs)
Prepared the page for translation
Ardenet (talk | contribs)
m Adjust the position of page translation tags
 
Line 21: Line 21:
=== Natively Supported Policies ===
=== Natively Supported Policies ===


By default NixOS provides a few policies that can be enabled directly, a simple example is given below to understand how these are implemented<syntaxhighlight lang="nixos" line="1">  programs.chromium = {
By default NixOS provides a few policies that can be enabled directly, a simple example is given below to understand how these are implemented
 
</translate>
<syntaxhighlight lang="nixos" line="1">  programs.chromium = {
     enable = true;
     enable = true;
     homepageLocation = "https://www.startpage.com/";
     homepageLocation = "https://www.startpage.com/";
Line 39: Line 42:
     };
     };
   };</syntaxhighlight>
   };</syntaxhighlight>
<translate>


* {{Ic|homepageLocation}} option allows you to set the site that the homepage will open on
* {{Ic|homepageLocation}} option allows you to set the site that the homepage will open on
Line 67: Line 71:


If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the cli:
If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the cli:
</translate>
</translate>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 84: Line 89:


In some cases, {{ic|chrome://gpu}} will show Video Decode as enabled, but Video Acceleration Information as blank, with {{ic|chrome://media-internals}} using FFmpeg Video Decoder (software decoding). If this happens, try to enable the following features:
In some cases, {{ic|chrome://gpu}} will show Video Decode as enabled, but Video Acceleration Information as blank, with {{ic|chrome://media-internals}} using FFmpeg Video Decoder (software decoding). If this happens, try to enable the following features:
</translate>
</translate>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 108: Line 114:
== Enabling ManifestV2 support ==
== Enabling ManifestV2 support ==


To enable manifest v2 support <code>ExtensionManifestV2Availability</code> can be set to <code>2</code>.<ref>https://chromeenterprise.google/policies/#ExtensionManifestV2Availability</ref>{{file|/etc/nixos/configuration.nix|nix|<nowiki>
To enable manifest v2 support <code>ExtensionManifestV2Availability</code> can be set to <code>2</code>.<ref>https://chromeenterprise.google/policies/#ExtensionManifestV2Availability</ref>
 
</translate>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{
{
   programs.chromium = {
   programs.chromium = {
Line 117: Line 126:
}
}
</nowiki>}}
</nowiki>}}
<translate>


== Enabling DRM (Widevine support) ==
== Enabling DRM (Widevine support) ==


By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the unfree Widevine blob from nixpkgs:
By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the unfree Widevine blob from nixpkgs:
</translate>
</translate>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 133: Line 144:
== KeePassXC support in Flatpak ==
== KeePassXC support in Flatpak ==


To enable browser integration between KeePassXC and Chromium-based browsers when running in Flatpak, configure the following filesystem access:<syntaxhighlight lang="toml"># NativeMessagingHost directory (browser-specific)
To enable browser integration between KeePassXC and Chromium-based browsers when running in Flatpak, configure the following filesystem access:
 
</translate>
<syntaxhighlight lang="toml"># NativeMessagingHost directory (browser-specific)
# Brave Browser
# Brave Browser
xdg-config/BraveSoftware/Brave-Browser/NativeMessagingHosts:ro
xdg-config/BraveSoftware/Brave-Browser/NativeMessagingHosts:ro
Line 144: Line 158:
xdg-run/app/org.keepassxc.KeePassXC/org.keepassxc.KeePassXC.BrowserServer
xdg-run/app/org.keepassxc.KeePassXC/org.keepassxc.KeePassXC.BrowserServer
/nix/store:ro</syntaxhighlight>
/nix/store:ro</syntaxhighlight>
<translate>


== Using libc memory allocator ==
== Using libc memory allocator ==


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:<syntaxhighlight lang="nix">
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:
 
</translate>
<syntaxhighlight lang="nix">
programs.firejail = {
programs.firejail = {
   enable = true;
   enable = true;
Line 163: Line 181:
</syntaxhighlight>
</syntaxhighlight>


</translate>
[[Category:Applications]]
[[Category:Applications]]
[[Category:Web Browser{{#translation:}}]]
[[Category:Web Browser{{#translation:}}]]