From e08defd4f464b51efc48497d63d55644e897f0a7 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Thu, 3 Jul 2025 22:38:51 +0100 Subject: [PATCH] update zen browser --- flake.lock | 75 ++++++------------------ flake.nix | 1 - home/common/programs/desktop/firefox.nix | 51 +--------------- 3 files changed, 21 insertions(+), 106 deletions(-) diff --git a/flake.lock b/flake.lock index da52534..23f5248 100644 --- a/flake.lock +++ b/flake.lock @@ -81,26 +81,6 @@ "type": "github" } }, - "firefox-addons": { - "inputs": { - "nixpkgs": "nixpkgs" - }, - "locked": { - "dir": "pkgs/firefox-addons", - "lastModified": 1749009805, - "narHash": "sha256-eRv4m89aPJvIAX9mZQcJM+l3sYG+OJvcLsiHvAvXalg=", - "owner": "rycee", - "repo": "nur-expressions", - "rev": "622c38d004cdded682d9a5ab7323181dc6efb0c1", - "type": "gitlab" - }, - "original": { - "dir": "pkgs/firefox-addons", - "owner": "rycee", - "repo": "nur-expressions", - "type": "gitlab" - } - }, "flake-compat": { "flake": false, "locked": { @@ -250,7 +230,7 @@ "foundry": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs" }, "locked": { "lastModified": 1750929040, @@ -469,7 +449,7 @@ "git-hooks": "git-hooks", "hercules-ci-effects": "hercules-ci-effects", "neovim-src": "neovim-src", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -523,18 +503,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1744536153, - "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=", - "owner": "nixos", + "lastModified": 1666753130, + "narHash": "sha256-Wff1dGPFSneXJLI2c0kkdWTgxnQ416KE6X4KnFkgPYQ=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11", + "rev": "f540aeda6f677354f1e7144ab04352f61aaa0118", "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" + "id": "nixpkgs", + "type": "indirect" } }, "nixpkgs-lib": { @@ -553,20 +531,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1666753130, - "narHash": "sha256-Wff1dGPFSneXJLI2c0kkdWTgxnQ416KE6X4KnFkgPYQ=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "f540aeda6f677354f1e7144ab04352f61aaa0118", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_3": { "locked": { "lastModified": 1750865895, "narHash": "sha256-p2dWAQcLVzquy9LxYCZPwyUdugw78Qv3ChvnX755qHA=", @@ -582,7 +546,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_3": { "locked": { "lastModified": 1748929857, "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=", @@ -598,7 +562,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_4": { "locked": { "lastModified": 1750811787, "narHash": "sha256-rD/978c35JXz6JLAzciTIOCMenPumF6zrQOj4rVZeHE=", @@ -614,7 +578,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_5": { "locked": { "lastModified": 1710272261, "narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=", @@ -630,7 +594,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_6": { "locked": { "lastModified": 1743448293, "narHash": "sha256-bmEPmSjJakAp/JojZRrUvNcDX2R5/nuX6bm+seVaGhs=", @@ -649,7 +613,7 @@ "nixvim": { "inputs": { "flake-parts": "flake-parts_3", - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_4", "nuschtosSearch": "nuschtosSearch", "systems": "systems_2" }, @@ -752,14 +716,13 @@ }, "root": { "inputs": { - "firefox-addons": "firefox-addons", "foundry": "foundry", "hardware": "hardware", "home-manager": "home-manager", "hyprpanel": "hyprpanel", "neovim-nightly-overlay": "neovim-nightly-overlay", "nix-colors": "nix-colors", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_3", "nixvim": "nixvim", "nvchad-starter": "nvchad-starter", "nvchad4nix": "nvchad4nix", @@ -773,7 +736,7 @@ "rose-pine-hyprcursor": { "inputs": { "hyprlang": "hyprlang", - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_5", "utils": "utils" }, "locked": { @@ -955,14 +918,14 @@ "zen-browser": { "inputs": { "home-manager": "home-manager_2", - "nixpkgs": "nixpkgs_7" + "nixpkgs": "nixpkgs_6" }, "locked": { - "lastModified": 1751200680, - "narHash": "sha256-sVep+p1XtL4tpArd1of+8mA3mJ9T0NsHNOCLGKxxRns=", + "lastModified": 1751512826, + "narHash": "sha256-7ZacraAVWZBXGlg+UoPsZs+DACSsKJKTnCA83nXT6rM=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "35ba63ea42a57e8470e605b178e5228a29edbcbe", + "rev": "fedb07931fc9b162a972b8966fdd9ba76273a590", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2ef39de..b40e66a 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,6 @@ }; utils.url = "github:numtide/flake-utils"; hardware.url = "github:NixOS/nixos-hardware/master"; - firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor"; hyprpanel = { url = "github:Jas-SinghFSU/HyprPanel"; diff --git a/home/common/programs/desktop/firefox.nix b/home/common/programs/desktop/firefox.nix index cf1ad4f..028dca7 100644 --- a/home/common/programs/desktop/firefox.nix +++ b/home/common/programs/desktop/firefox.nix @@ -1,8 +1,8 @@ -{ pkgs, inputs, ... }: +{ pkgs, ... }: { home.sessionVariables = { - BROWSER = "google-chrome-stable"; + BROWSER = "zen-twilight"; }; programs.firefox = { @@ -52,52 +52,5 @@ Snippets = false; }; }; - - profiles = { - "dev-edition-default" = { - isDefault = true; - extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [ - # privacy - clearurls - decentraleyes - - # quality of life - no-pdf-download - buster-captcha-solver - - # dev - react-devtools - translate-web-pages - - # manual use - bitwarden - ]; - settings = { - # Performance settings - "gfx.webrender.all" = true; # Force enable GPU acceleration - "media.ffmpeg.vaapi.enabled" = true; - "widget.dmabuf.force-enabled" = true; # Required in recent Firefoxes - - "widget.use-xdg-desktop-portal.file-picker" = true; - - # Hide the "sharing indicator", it's especially annoying - # with tiling WMs on wayland - "privacy.webrtc.legacyGlobalIndicator" = false; - - # Actual settings - "browser.aboutConfig.showWarning" = false; - "browser.newtabpage.pinned" = false; - "browser.protections_panel.infoMessage.seen" = true; - "browser.quitShortcut.disabled" = true; - "browser.urlbar.suggest.openpage" = false; - "privacy.trackingprotection.enabled" = true; - "privacy.trackingprotection.socialtracking.enabled" = true; - - "mousewhell.system_scroll_override" = true; - - "extension.autoDisableScopes" = "0"; - }; - }; - }; }; }