From 297c2651137f2daa78390c2cbd782dbe47b16bc3 Mon Sep 17 00:00:00 2001 From: davidak Date: Sun, 24 May 2020 06:09:01 +0200 Subject: [PATCH] nixos/chromium: add example and update description --- nixos/modules/programs/chromium.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/nixos/modules/programs/chromium.nix b/nixos/modules/programs/chromium.nix index 16c063ebc89..3f042913619 100644 --- a/nixos/modules/programs/chromium.nix +++ b/nixos/modules/programs/chromium.nix @@ -69,11 +69,24 @@ in extraOpts = mkOption { type = types.attrs; description = '' - Extra chromium policy options, see - https://www.chromium.org/administrators/policy-list-3 - for a list of avalible options + Extra chromium policy options. A list of available policies + can be found in the Chrome Enterprise documentation: + https://cloud.google.com/docs/chrome-enterprise/policies/ + Make sure the selected policy is supported on Linux and your browser version. ''; default = {}; + example = literalExample '' + { + "BrowserSignin" = 0; + "SyncDisabled" = true; + "PasswordManagerEnabled" = false; + "SpellcheckEnabled" = true; + "SpellcheckLanguage" = [ + "de" + "en-US" + ]; + } + ''; }; }; };