From d2aa96ff4bd59c8ebb6e6bc54efba6ee79f6495c Mon Sep 17 00:00:00 2001 From: joygnu Date: Fri, 12 Jul 2024 17:08:03 +0200 Subject: [PATCH] firefox --- flake.lock | 18 +++--- home/firefox/default.nix | 112 +++++++++++++++++++++++++++++--------- home/hyprland/default.nix | 2 +- 3 files changed, 97 insertions(+), 35 deletions(-) diff --git a/flake.lock b/flake.lock index 7ea06a4..da26148 100644 --- a/flake.lock +++ b/flake.lock @@ -163,11 +163,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1720670590, - "narHash": "sha256-bOwqVHszU6wu5QbsKVyyIx7xeuH3mwkwaESsnJ2CFq0=", + "lastModified": 1720756997, + "narHash": "sha256-nu0kRXP1dq0KYgt0ISVOWQFauyqB6soL10q3m7G6QpA=", "owner": "rycee", "repo": "nur-expressions", - "rev": "3dee51f30be5971081247f8d7d7f290abbfbfe2c", + "rev": "6b0aa08643c6b403e387da201eaf4bc0e04db93a", "type": "gitlab" }, "original": { @@ -353,11 +353,11 @@ ] }, "locked": { - "lastModified": 1720646128, - "narHash": "sha256-BivO5yIQukDlJL+1875Sqf3GuOPxZDdA48dYDi3PkL8=", + "lastModified": 1720734513, + "narHash": "sha256-neWQ8eNtLTd+YMesb7WjKl1SVCbDyCm46LUgP/g/hdo=", "owner": "nix-community", "repo": "home-manager", - "rev": "c085b984ff2808bf322f375b10fea5a415a9c43d", + "rev": "90ae324e2c56af10f20549ab72014804a3064c7f", "type": "github" }, "original": { @@ -491,11 +491,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1720702748, - "narHash": "sha256-cmOvEwKQx1vs/Sx4pE4exqPMvOwnI/5DrinkQG8X1qY=", + "lastModified": 1720735595, + "narHash": "sha256-TX7PZY80h22+i01d2M1/50gfdzbvqYpmE7+s13FJnJ4=", "owner": "nix-community", "repo": "nixvim", - "rev": "ca01a644ef0ef924dd0c6b2b54c4f2a8019fe5cf", + "rev": "53e85da2409ddfeef27e8cdc9c020433614329f9", "type": "github" }, "original": { diff --git a/home/firefox/default.nix b/home/firefox/default.nix index 1363ae0..4482b2b 100644 --- a/home/firefox/default.nix +++ b/home/firefox/default.nix @@ -1,53 +1,115 @@ -{ pkgs, inputs, ... }: +{ + inputs, ... }: { programs.firefox = { enable = true; profiles.joy = { - search.engines = { "4get" = { urls = [{ - template = "https://search.nixos.org/packages"; + template = "https://4get.ch/web"; params = [ - { name = "type"; value = "packages"; } - { name = "query"; value = "{searchTerms}"; } + { name = "s"; value = "{searchTerms}"; } ]; }]; - - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@np" ]; + definedAliases = [ "@4get" ]; }; }; search.force = true; + search.default = "4get"; - bookmarks = [ - { - name = "wikipedia"; - tags = [ "wiki" ]; - keyword = "wiki"; - url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go"; - } - ]; - + bookmarks = [{ + name = "Nix sites"; + toolbar = true; + bookmarks = [ + { name = "Packages"; url = "https://search.nixos.org/packages?channel=unstable"; } + { name = "Homemanager"; url = "https://nix-community.github.io/home-manager/options.xhtml"; } + { name = "Stylix"; url = "https://stylix.danth.me/options/nixos.html"; } + { name = "Socials Joy"; url = "https://joygnu.org/"; } + { name = "Wallpapers"; url = "https://wallpapers.joygnu.org/"; } + { name = "Server"; url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920"; } + { name = "Domain"; url = "https://registrar.epik.com/domain-management/host-records"; } + { name = "Translate"; url = "https://simplytranslate.org/"; } + { name = "Syncthing"; url = "http://localhost:8384/"; } + { name = "GitHub"; url = "https://github.com/"; } + { name = "Codeberg"; url = "https://codeberg.org/"; } + { name = "Startpage"; url = "https://www.startpage.com/"; } + { name = "DuckDuckGo"; url = "https://duckduckgo.com/"; } + { name = "Gamepad Tester"; url = "https://gamepad-tester.com/"; } + { name = "Zophar's Domain"; url = "https://www.zophar.net/music"; } + { name = "Cmus Playlist Guide"; url = "https://unix.stackexchange.com/questions/328856/how-can-i-create-a-playlist-and-add-songs-to-it-in-cmus"; } + { name = "Spotify Downloader"; url = "https://spotdl.io/"; } + ]; + }]; + settings = { "dom.security.https_only_mode" = true; "browser.download.panel.shown" = true; "identity.fxaccounts.enabled" = false; "signon.rememberSignons" = false; + "browser.urlbar.pocket.featureGate" = false; + "browser.newtabpage.activity-stream.showSponsoredTopSites" = false; + "browser.shell.checkDefaultBrowser" = false; + "browser.shell.defaultBrowserCheckCount" = 1; + "browser.startup.homepage" = "moz-extension://f3ba075e-5213-4eca-b67c-470714db5333/index.html"; + "privacy.trackingprotection.enabled" = true; + "browser.uiCustomization.state" = + '' + { + "placements": { + "widget-overflow-fixed-list": [], + "nav-bar": [ + "back-button", + "forward-button", + "stop-reload-button", + "urlbar-container", + "downloads-button", + "library-button", + "ublock0_raymondhill_net-browser-action", + "addon_darkreader_org-browser-action", + "_testpilot-containers-browser-action" + ], + "toolbar-menubar": [ + "menubar-items" + ], + "TabsToolbar": [ + "tabbrowser-tabs", + "new-tab-button", + "alltabs-button" + ], + "PersonalToolbar": [ + "import-button", + "personal-bookmarks" + ] + }, + "seen": [ + "save-to-pocket-button", + "developer-button", + "ublock0_raymondhill_net-browser-action", + "addon_darkreader_org-browser-action", + "_testpilot-containers-browser-action" + ], + "dirtyAreaCache": [ + "nav-bar", + "PersonalToolbar", + "toolbar-menubar", + "TabsToolbar", + "widget-overflow-fixed-list" + ], + "currentVersion": 18, + "newElementCount": 4 + } + ''; + }; - userChrome = '' - /* some css */ - ''; - extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ - bitwarden ublock-origin - sponsorblock darkreader - tridactyl - youtube-shorts-block + libredirect + search-by-image + decentraleyes ]; }; diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index c306976..97dfc19 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -45,7 +45,7 @@ # launch Apps "$mod,TAB, exec, alacritty" "$mod, E, exec, nemo" - "$mod, S, exec, brave" + "$mod, S, exec, firefox" "$mod, X, exec, keepassxc" "$mod, D, exec, alacritty -e screen -r cmus" "$mod, F, exec, freetube"