From f3d9fe98aec63047b9d587eb9385d65e196c06f0 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 11 Aug 2022 14:10:38 +0200 Subject: [PATCH] firefox defaultBookmarks option --- modules/firefox.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/firefox.nix b/modules/firefox.nix index b26f1f47..8870dac8 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -12,6 +12,7 @@ in { wayland = mkBoolOpt false "Enable firefox wayland support"; vaapi = mkBoolOpt false "Enable firefox vaapi support"; disableTabBar = mkBoolOpt false "Disable the firefox tab bar (for TST)"; + defaultBookmarks = mkBoolOpt false "Preset standard bookmarks and folders"; }; config = mkIf cfg.enable { @@ -52,7 +53,7 @@ in { # https://github.com/mozilla/policy-templates#enterprisepoliciesenabled extraPolicies = { # TODO: Make library function to allow easy bookmark creation and add my default bookmarks/folders - Bookmarks = { }; + Bookmarks = (optionalAttrs cfg.defaultBookmarks { }); CaptivePortal = false; DisableFirefoxAccounts = true; DisableFirefoxStudies = true;