From cc6d2c3f2365c27bd99e56432e4ff6d2b1605e3d Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 10 Jan 2023 22:01:16 -0800 Subject: [PATCH] Autohide toolbox --- firefox.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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"; }; }; }