From be1ce9fdf16366d45b9d9ff4d26ff7b00d6461c1 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 10 Oct 2023 15:34:34 -0400 Subject: [PATCH] fix(firefox): use theme new tab background --- nixos/home/firefox/firefox-gx.nix | 3 +++ nixos/home/firefox/main.nix | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/home/firefox/firefox-gx.nix b/nixos/home/firefox/firefox-gx.nix index a17aa01b..34e308f5 100644 --- a/nixos/home/firefox/firefox-gx.nix +++ b/nixos/home/firefox/firefox-gx.nix @@ -17,6 +17,9 @@ stdenvNoCC.mkDerivation { # Personal changes sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css + substituteInPlace ./chrome/components/ogx_root-personal.css \ + --replace '../images/newtab/wallpaper-dark.png' "$out/chrome/images/newtab/private-dark.png" + mv ./Extras/Tab-Shapes/ogx_tab-shapes.css ./chrome/components rm ./user.js mv ./Extras/Tab-Shapes/user.js ./ diff --git a/nixos/home/firefox/main.nix b/nixos/home/firefox/main.nix index ca09511b..24ed81cf 100644 --- a/nixos/home/firefox/main.nix +++ b/nixos/home/firefox/main.nix @@ -6,9 +6,10 @@ in { home.file = { - ".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components"; - ".mozilla/firefox/matt/chrome/icons".source = "${firefox-gx}/chrome/icons"; - ".mozilla/firefox/matt/chrome/images".source = "${firefox-gx}/chrome/images"; + ".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components"; + ".mozilla/firefox/matt/chrome/icons".source = "${firefox-gx}/chrome/icons"; + ".mozilla/firefox/matt/chrome/images".source = "${firefox-gx}/chrome/images"; + ".mozilla/firefox/matt/chrome/userContent.css".source = "${firefox-gx}/chrome/userContent.css"; }; programs.firefox = { @@ -21,7 +22,6 @@ in ${builtins.readFile "${firefox-gx}/chrome/userChrome.css"} ${builtins.readFile ./custom.css} ''; - userContent = builtins.readFile "${firefox-gx}/chrome/userContent.css"; extraConfig = builtins.readFile "${firefox-gx}/user.js"; settings = {