From 3465fc5f174a16cd98ddb46cc8024c1eeae650d8 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Thu, 3 Nov 2022 16:14:13 +0100 Subject: [PATCH] firefox: add more user configuration --- modules/programs/firefox.nix | 173 +++++++++++++++++++++-------------- 1 file changed, 102 insertions(+), 71 deletions(-) diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 8aa4108..0e7c302 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -22,6 +22,37 @@ #id = 271987; name = "kabbone"; isDefault = true; + settings = { + "media.ffmpeg.vaapi.enabled" = true; + "gfx.webrender.all" = true; + "browser.contentblocking.category" = "strict"; + "browser.search.region" = "DE"; + "extensions.active.ThemeID" = "dreamer-bold-colorway@mozilla.org"; + "media.autoplay.default" = 0; + "security.enterprise_roots.enabled" = true; + "widget.gtk.overlay-scrollbars.enabled" = true; + "signon.rememberSignons" = false; + "extensions.formautofill.creditCards.enabled" = false; + "datareporting.healthreport.uploadEnabled" = false; + "browser.urlbar.placeholderName" = "DuckDuckGo"; + "browser.urlbar.placeholderName.private" = "DuckDuckGo"; + "browser.theme.toolbar-theme" = 0; + }; + + userChrome = '' + /* Hide tab bar in FF Quantum */ + @-moz-document url("chrome://browser/content/browser.xul") { + #TabsToolbar { + visibility: collapse !important; + margin-bottom: 21px !important; + } + + #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { + visibility: collapse !important; + } + } + ''; + search = { engines = { "Nix Packages" = { @@ -50,78 +81,78 @@ }; bookmarks = [ - { - name = "Kabtop Nextcloud"; - url = "https://cloud.kabtop.de/"; - } - { - name = "Home Assistant"; - url = "https://hass.home.opel-online.de/"; - } - { - name = "Netflix"; - url = "https://netflix.com/browse"; - } - { - name = "YouTube"; - url = "https://youtube.com/"; - } - { - name = "Kicker"; - url = "https://kicker.de/"; - } - { - name = "Chilloutzone"; - url = "https://chilloutzone.net/"; - } - { - name = "myDealZ"; - url = "https://mydealz.de/"; - } - { - name = "Kabtop Git"; - url = "https://git.kabtop.de/"; - } - { - name = "Spotify"; - url = "https://open.spotify.com/"; - } - { - name = "Tech"; - bookmarks = [ - { - name = "Golem"; - url = "https://golem.de/"; - } - { - name = "Heise"; - url = "https://heise.de/"; - } - { - name = "Phoronix"; - url = "https://phoronix.com/"; - } - ]; - } - { - name = "Foren"; - bookmarks = [ - { - name = "Archlinux-en"; - url = "https://archlinux.org/"; - } - { - name = "Archlinux-ARM"; - url = "https://archlinuxarm.org/"; - } - { - name = "Archlinux-de"; - url = "https://archlinux.de/"; - } - ]; - } + { + name = "Kabtop Nextcloud"; + url = "https://cloud.kabtop.de/"; + } + { + name = "Home Assistant"; + url = "https://hass.home.opel-online.de/"; + } + { + name = "Netflix"; + url = "https://netflix.com/browse"; + } + { + name = "YouTube"; + url = "https://youtube.com/"; + } + { + name = "Kicker"; + url = "https://kicker.de/"; + } + { + name = "Chilloutzone"; + url = "https://chilloutzone.net/"; + } + { + name = "myDealZ"; + url = "https://mydealz.de/"; + } + { + name = "Kabtop Git"; + url = "https://git.kabtop.de/"; + } + { + name = "Spotify"; + url = "https://open.spotify.com/"; + } + { + name = "Tech"; + bookmarks = [ + { + name = "Golem"; + url = "https://golem.de/"; + } + { + name = "Heise"; + url = "https://heise.de/"; + } + { + name = "Phoronix"; + url = "https://phoronix.com/"; + } + ]; + } + { + name = "Foren"; + bookmarks = [ + { + name = "Archlinux-en"; + url = "https://archlinux.org/"; + } + { + name = "Archlinux-ARM"; + url = "https://archlinuxarm.org/"; + } + { + name = "Archlinux-de"; + url = "https://archlinux.de/"; + } + ]; + } ]; - }; + }; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ h264ify