From a65558d3b8b8d72e2d6cb6c7080940c895f5267b Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 31 Jul 2025 23:56:49 +0200 Subject: [PATCH] Update firefox bookmark config --- config/firefox-bookmarks.nix | 94 ++++++++++++++++++++++++++++++ modules/firefox.nix | 107 ++++++++++++----------------------- 2 files changed, 129 insertions(+), 72 deletions(-) create mode 100644 config/firefox-bookmarks.nix diff --git a/config/firefox-bookmarks.nix b/config/firefox-bookmarks.nix new file mode 100644 index 0000000..5ca3f3a --- /dev/null +++ b/config/firefox-bookmarks.nix @@ -0,0 +1,94 @@ +{ + force = true; + settings = [ + { + name = "Toolbar"; + toolbar = true; + bookmarks = [ + { + name = "Links"; + url = "https://link.nas.yanlincs.com"; + } + { + name = "RSS"; + url = "https://rss.nas.yanlincs.com"; + } + { + name = "Overleaf"; + url = "https://www.overleaf.com/project"; + } + { + name = "Notion"; + url = "https://www.notion.so"; + } + { + name = "Paperless"; + url = "https://paperless.nas.yanlincs.com"; + } + { + name = "Nextcloud"; + url = "https://cloud.nas.yanlincs.com"; + } + { + name = "Productivity"; + bookmarks = [ + { + name = "Outlook"; + url = "https://outlook.office.com/mail/"; + } + { + name = "Gmail"; + url = "https://mail.google.com/mail/u/0/#inbox"; + } + { + name = "Teams"; + url = "https://teams.microsoft.com/v2/"; + } + ]; + } + { + name = "My Home"; + url = "https://home.nas.yanlincs.com/lovelace/0"; + } + { + name = "Media"; + bookmarks = [ + { + name = "Immich"; + url = "https://photo.nas.yanlincs.com/photos"; + } + { + name = "Plex"; + url = "https://plex.nas.yanlincs.com"; + } + { + name = "Emby"; + url = "https://emby.nas.yanlincs.com"; + } + { + name = "Library"; + bookmarks = [ + { + name = "Sonarr"; + url = "https://sonarr.nas.yanlincs.com"; + } + { + name = "Radarr"; + url = "https://radarr.nas.yanlincs.com"; + } + { + name = "qBittorrent"; + url = "https://qbit.nas.yanlincs.com"; + } + { + name = "MeTube"; + url = "https://metube.nas.yanlincs.com"; + } + ]; + } + ]; + } + ]; + } + ]; +} \ No newline at end of file diff --git a/modules/firefox.nix b/modules/firefox.nix index 7dc5665..f9cbcd4 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -17,89 +17,38 @@ if firefox-addons != null then with firefox-addons.packages.${pkgs.system}; [ ublock-origin + linkding-extension ] else []; }; # Bookmarks - bookmarks = { - force = true; - settings = [ - { - name = "Toolbar"; - toolbar = true; - bookmarks = [ - { - name = "My Home"; - url = "https://home.nas.yanlincs.com/lovelace/0"; - } - { - name = "Media"; - bookmarks = [ - { - name = "Immich"; - url = "https://photo.nas.yanlincs.com/photos"; - } - { - name = "Plex"; - url = "https://plex.nas.yanlincs.com"; - } - { - name = "Emby"; - url = "https://emby.nas.yanlincs.com"; - } - { - name = "Library"; - bookmarks = [ - { - name = "Sonnar"; - url = "https://sonnar.nas.yanlincs.com"; - } - { - name = "Radarr"; - url = "https://radarr.nas.yanlincs.com"; - } - { - name = "qBittorrent"; - url = "https://qbit.nas.yanlincs.com"; - } - { - name = "MeTube"; - url = "https://metube.nas.yanlincs.com"; - } - ]; - } - ]; - } - ]; - } - ]; - }; + bookmarks = import ../config/firefox-bookmarks.nix; # Search configuration search = { force = true; default = "ddg"; - engines = { - "Nix Packages" = { - urls = [{ - template = "https://search.nixos.org/packages"; - params = [ - { name = "channel"; value = "unstable"; } - { name = "query"; value = "{searchTerms}"; } - ]; - }]; - icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@np" ]; - }; - - "NixOS Wiki" = { - urls = [{ template = "https://wiki.nixos.org/index.php?search={searchTerms}"; }]; - icon = "https://wiki.nixos.org/favicon.png"; - definedAliases = [ "@nw" ]; - }; - }; + # engines = { + # "Nix Packages" = { + # urls = [{ + # template = "https://search.nixos.org/packages"; + # params = [ + # { name = "channel"; value = "unstable"; } + # { name = "query"; value = "{searchTerms}"; } + # ]; + # }]; + # icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + # definedAliases = [ "@np" ]; + # }; + # + # "NixOS Wiki" = { + # urls = [{ template = "https://wiki.nixos.org/index.php?search={searchTerms}"; }]; + # icon = "https://wiki.nixos.org/favicon.png"; + # definedAliases = [ "@nw" ]; + # }; + # }; }; # Firefox settings @@ -164,6 +113,20 @@ # Disable Pocket "extensions.pocket.enabled" = false; "browser.newtabpage.activity-stream.section.highlights.includePocket" = false; + + # Password Manager - disable all functionality + "signon.rememberSignons" = false; + "signon.autofillForms" = false; + "signon.prefillForms" = false; + + # Form Auto-complete - disable all form history and suggestions + "browser.formfill.enable" = false; + "browser.formfill.saveHttpsForms" = false; + + # Additional Auto-fill features - disable address and credit card autofill + "extensions.formautofill.addresses.enabled" = false; + "extensions.formautofill.creditCards.enabled" = false; + "extensions.formautofill.heuristics.enabled" = false; }; }; };