Add Chromium policies

This commit is contained in:
Anthony Rose 2025-03-14 12:01:56 +00:00
parent 90a3172441
commit 649e2bcf05
4 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,2 @@
.flatpak-builder/
build-dir/

View file

@ -0,0 +1,44 @@
{
"AutofillAddressEnabled": false,
"AutofillCreditCardEnabled": false,
"BrowserSignin": 0,
"CreateThemesSettings": 2,
"DefaultSearchProviderEnabled": true,
"DefaultSearchProviderImageURL": "https://kagi.com/asset/v2/favicon-32x32.png",
"DefaultSearchProviderKeyword": "kagi",
"DefaultSearchProviderName": "Kagi",
"DefaultSearchProviderSearchURL": "https://kagi.com/search?q={searchTerms}",
"DevToolsGenAiSettings": 2,
"ExtensionInstallForcelist": [
"ddkjiahejlhfcafbddmgiahcphecmpfh"
],
"ForcedLanguages": [
"en-GB",
"en-US",
"en"
],
"GenAiDefaultSettings": 2,
"GenAILocalFoundationalModelSettings": 1,
"GenAIVcBackgroundSettings": 2,
"GenAIWallpaperSettings": 2,
"HelpMeReadSettings": 2,
"HelpMeWriteSettings": 2,
"HistorySearchSettings": 2,
"HttpsOnlyMode": "force_enabled",
"LiveTranslateEnabled": false,
"NetworkPredictionOptions": 2,
"NewTabPageLocation": "about:blank",
"PasswordLeakDetectionEnabled": false,
"PasswordManagerEnabled": false,
"PaymentMethodQueryEnabled": false,
"PromptForDownloadLocation": true,
"RestoreOnStartup": 1,
"SearchSuggestEnabled": false,
"SpellcheckLanguage": [
"en-GB"
],
"SpellCheckServiceEnabled": false,
"TabCompareSettings": 2,
"TabOrganizerSettings": 2,
"TranslateEnabled": false
}

View file

@ -0,0 +1,5 @@
#!/bin/sh
# https://chromeenterprise.google/policies/
rm -fr build-dir/
flatpak run org.flatpak.Builder --user --install --force-clean build-dir/ org.chromium.Chromium.Extension.ant-policy.yaml
rm -fr build-dir/

View file

@ -0,0 +1,20 @@
# Base the branch and sdk versions on the Chromium yaml:
# https://github.com/flathub/org.chromium.Chromium/blob/master/org.chromium.Chromium.yaml
app-id: org.chromium.Chromium.Extension.ant-policy
branch: '1'
runtime: org.chromium.Chromium
runtime-version: stable
sdk: org.freedesktop.Sdk//24.08
build-extension: true
appstream-compose: false
modules:
- name: policy
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/policies/managed
- install -Dm 644 ant-policy.json ${FLATPAK_DEST}/policies/managed
sources:
- type: file
path: ant-policy.json