Chromium/zh: Difference between revisions
Created page with "完整的政策列表可在 [$1 Chrome 企业政策列表和管理] 中找到。" |
Created page with "通过 `overlay` 实现向配置同步守护程序添加 Brave 浏览器支持的自动化。" Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 161: | 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:}}]] | ||