Chromium/zh: Difference between revisions

Ardenet (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
Ardenet (talk | contribs)
Created page with "通过 `overlay` 实现向配置同步守护程序添加 Brave 浏览器支持的自动化。"
Tags: Mobile edit Mobile web edit
 
(3 intermediate revisions by 2 users not shown)
Line 19: Line 19:
* 以及更多!
* 以及更多!


<div lang="en" dir="ltr" class="mw-content-ltr">
完整的政策列表可在 [https://chromeenterprise.google/policies/ Chrome 企业政策列表和管理] 中找到。
A full list of policies can be found at [https://chromeenterprise.google/policies/ Chrome Enterprise Policy List & Management].
</div>


<span id="Natively_Supported_Policies"></span>
<span id="Natively_Supported_Policies"></span>
Line 163: Line 161:
};
};
</syntaxhighlight>
</syntaxhighlight>
<span id="Add_support_for_Brave_Browser_in_Profile_Sync_daemon"></span>
== 在配置同步守护程序中添加对 Brave 浏览器的支持 ==
通过 `overlay` 实现向配置同步守护程序添加 Brave 浏览器支持的自动化。
<syntaxhighlight lang="nix">
# /etc/nixos/configuration.nix
{
  nixpkgs = {
    overlays = [
      (final: prev: {
        profile-sync-daemon = prev.profile-sync-daemon.overrideAttrs (oldAttrs: {
          installPhase =
            oldAttrs.installPhase
            + ''
              cp $out/share/psd/{contrib,browsers}/brave
            '';
        });
      })
    ];
  };
  # Enable the Profile Sync daemon service.
  services.psd.enable = true;
}
</syntaxhighlight>


[[Category:Applications]]
[[Category:Applications]]
[[Category:Web Browser{{#translation:}}]]
[[Category:Web Browser{{#translation:}}]]