Add Chromium policies
This commit is contained in:
parent
90a3172441
commit
649e2bcf05
4 changed files with 71 additions and 0 deletions
roles/home-gui/files/chromium-policy
2
roles/home-gui/files/chromium-policy/.gitignore
vendored
Normal file
2
roles/home-gui/files/chromium-policy/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.flatpak-builder/
|
||||
build-dir/
|
44
roles/home-gui/files/chromium-policy/ant-policy.json
Normal file
44
roles/home-gui/files/chromium-policy/ant-policy.json
Normal 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
|
||||
}
|
5
roles/home-gui/files/chromium-policy/build
Executable file
5
roles/home-gui/files/chromium-policy/build
Executable 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/
|
|
@ -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
|
Loading…
Add table
Reference in a new issue