From 189d7da00b4d4c33af3ea77e819d8e73706ef0a9 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 5 Oct 2024 08:42:18 +0000 Subject: [PATCH] firefox: link the bookmarks into fs in a way thats easier to edit at runtime --- hosts/common/programs/firefox/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/common/programs/firefox/default.nix b/hosts/common/programs/firefox/default.nix index 2035a6a47..ff9f8ddc2 100644 --- a/hosts/common/programs/firefox/default.nix +++ b/hosts/common/programs/firefox/default.nix @@ -255,11 +255,13 @@ in // - to add a search shortcut: right-click any search box => "Add a keyword for this search". // - to update the static bookmarks, export via Hamburger => bookmarks => manage bookmarks => Import and Backup => Export Bookmarks To HTML defaultPref("browser.places.importBookmarksHTML", true); - defaultPref("browser.bookmarks.file", "${./bookmarks.html}"); + defaultPref("browser.bookmarks.file", "~/.mozilla/firefox/bookmarks.html"); defaultPref("browser.startup.homepage", "https://uninsane.org/places"); ''; + fs.".mozilla/firefox/bookmarks.html".symlink.target = ./bookmarks.html; + # instruct Firefox to put the profile in a predictable directory (so we can do things like persist just it). # XXX: the directory *must* exist, even if empty; Firefox will not create the directory itself. fs.".mozilla/firefox/profiles.ini".symlink.text = ''