From 658dba452f0f5c0517a0b6e0320d7c263e71ab7f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Sat, 17 Feb 2024 23:36:20 +0100 Subject: [PATCH] configure firefox - reduce url repetition for addons - enable firefox sync - add new addons --- modules/desktop/firefox.nix | 118 ++++++------------------------------ 1 file changed, 18 insertions(+), 100 deletions(-) diff --git a/modules/desktop/firefox.nix b/modules/desktop/firefox.nix index 87665e3..586928b 100644 --- a/modules/desktop/firefox.nix +++ b/modules/desktop/firefox.nix @@ -17,14 +17,18 @@ }; policies = { DefaultDownloadDirectory = "\${home}/Downloads"; - Extensions.Install = [ - "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin" - "https://addons.mozilla.org/firefox/downloads/latest/tridactyl-vim" - "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17" - "https://addons.mozilla.org/firefox/downloads/latest/gruvbox-dark-theme" - "https://addons.mozilla.org/firefox/downloads/latest/torproject-snowflake" - "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager" - "https://addons.mozilla.org/firefox/downloads/latest/terms-of-service-didnt-read" + Extensions.Install = builtins.map (name: "https://addons.mozilla.org/firefox/downloads/latest/${name}") [ + "ublock-origin" + "tridactyl-vim" + "privacy-badger17" + "gruvbox-dark-theme" + "torproject-snowflake" + "bitwarden-password-manager" + "terms-of-service-didnt-read" + "shinigami-eyes" + "darkreader" + "sponsorblock" + "youtube-mrbeastify" ]; Extensions.Uninstall = [ "google@search.mozilla.org" @@ -39,95 +43,6 @@ "DisablePocket" = true; }; profiles.jade = { - bookmarks = [ - { - name = "Toolbar"; - toolbar = true; - bookmarks = [ - { - name = "Katzencafé"; - tags = ["fedi" "social"]; - keyword = "ck"; - url = "https://ck.katzen.cafe"; - } - { - name = "Mastodon.de"; - tags = ["fedi" "social"]; - keyword = "mde"; - url = "https://mastodon.de"; - } - { - name = "Nekoverse"; - tags = ["fedi" "social"]; - keyword = "neko"; - url = "https://social.nekover.se"; - } - { - name = "Katzenschmiede"; - tags = ["fedi" "git"]; - keyword = "forge"; - url = "https://forge.katzen.cafe"; - } - { - name = "Katzenwolke"; - tags = ["cloud"]; - keyword = "wolke"; - url = "https://wolke.katzen.cafe"; - } - { - name = "Penpot"; - tags = ["design"]; - keyword = "pp"; - url = "https://design.katzen.cafe"; - } - { - name = "Pad"; - tags = ["pad"]; - keyword = "pad"; - url = "https://pad.katzen.cafe"; - } - { - name = "Auth"; - tags = ["keycloak"]; - keyword = "auth"; - url = "https://auth.katzen.cafe/realms/katzen.cafe/account"; - } - { - name = "CCCHH"; - bookmarks = [ - { - name = "Website"; - url = "https://hamburg.ccc.de"; - } - { - name = "Wiki"; - url = "https://wiki.ccchh.net"; - } - { - name = "Wiki (old)"; - url = "https://wiki.hamburg.ccc.de"; - } - { - name = "Wiki (nonpublic)"; - url = "https://nonpublic.wiki.hamburg.ccc.de"; - } - { - name = "Pads"; - url = "https://pad.hamburg.ccc.de"; - } - { - name = "Cloud"; - url = "https://cloud.hamburg.ccc.de"; - } - { - name = "Club Assistant"; - url = "https://club-assistant.ccchh.net"; - } - ]; - } - ]; - } - ]; search = { force = true; default = "DuckDuckGo"; @@ -252,6 +167,7 @@ settings = { "devtools.editor.keymap" = "vim"; "devtools.toolbox.host" = "right"; + "devtools.theme" = "dark"; "webgl.disabled" = false; "image.jxl.enabled" = true; "browser.urlbar.decodeURLsOnCopy" = true; @@ -264,9 +180,11 @@ "browser.aboutwelcome.showModal" = false; "browser.aboutwelcome.enabled" = false; "browser.preferences.moreFromMozilla" = false; - "identity.fxaccounts.enabled" = false; - "browser.tabs.firefox-view" = false; - "browser.tabs.firefox-view-next" = false; + "browser.menu.showViewImageInfo" = true; + + "identity.fxaccounts.enabled" = true; + "browser.tabs.firefox-view" = true; + "browser.tabs.firefox-view-next" = true; "browser.newtabpage.activity-stream.showSponsored" = false; "browser.newtabpage.activity-stream.showSponsoredTopSites" = false; "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false;