diff --git a/firefox.nix b/firefox.nix index 85bd2c5..8d4f0e6 100644 --- a/firefox.nix +++ b/firefox.nix @@ -1,8 +1,14 @@ -{ user, ... }: +{ pkgs, user, ... }: let startpageDir = import ./startpage/dir.nix; startpage = "file:///home/${user}/${startpageDir}/index.html"; + firefox-csshacks = pkgs.fetchFromGitHub { + owner = "MrOtherGuy"; + repo = "firefox-csshacks"; + rev = "76867a5f570319d1bfd8cd396c92c876450328da"; + sha256 = "pGDnT1aRsu/06dlYtsHLkaNakfvXmQQ/SAplClyS/2c="; + }; in { nixpkgs = { @@ -42,7 +48,9 @@ in isDefault = true; settings = { "browser.startup.homepage" = "${startpage}"; + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; + userChrome = builtins.readFile "${firefox-csshacks}/chrome/autohide_toolbox.css"; }; }; }