From de54d513c74bf8f4f3a58954b80b5f690639fe72 Mon Sep 17 00:00:00 2001 From: Benjamin Orthen Date: Thu, 2 Dec 2021 04:21:41 +0100 Subject: [PATCH] firefox: create user.js when only bookmarks are specified in config (issue #2492) (#2521) Previously, home-manager would not create a user.js for a certain profile if profile.bookmarks was not empty but profile.settings was empty and profile.extraConfig was an empty string. --- modules/programs/firefox.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 07de012c4..292bbb91a 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -370,8 +370,8 @@ in { "${profilesPath}/${profile.path}/chrome/userContent.css" = mkIf (profile.userContent != "") { text = profile.userContent; }; - "${profilesPath}/${profile.path}/user.js" = - mkIf (profile.settings != { } || profile.extraConfig != "") { + "${profilesPath}/${profile.path}/user.js" = mkIf (profile.settings != { } + || profile.extraConfig != "" || profile.bookmarks != { }) { text = mkUserJs profile.settings profile.extraConfig profile.bookmarks; };