From f6cf9bea4125ce0501c72374fa4ed82dc03d3147 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 11 May 2025 16:48:04 +0200 Subject: chore, formatting --- modules/firefox.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/firefox.nix') diff --git a/modules/firefox.nix b/modules/firefox.nix index f8ecc68..c7bc6d9 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -1,11 +1,8 @@ { config, lib, pkgs, inputs, ... }: -let - cfg = config.firefox; -in { +{ options.firefox.enable = lib.mkEnableOption "Setup firefox"; - - config = lib.mkIf cfg.enable { + config = lib.mkIf config.firefox.enable { programs.firefox = { enable = true; profiles.default = { @@ -79,7 +76,7 @@ in { /* Transparent background tabs (above url bar) */ #navigator-toolbox { -moz-appearance: -moz-vibrant-titlebar !important; - background: rgba(0, 0, 0, 0.85) !important; + background: rgba(0, 0, 0, 0.8) !important; } /* Transparent background (behind url bar) */ @@ -199,6 +196,9 @@ in { Preferences = { "toolkit.legacyUserProfileCustomizations.stylesheets" = true; "browser.toolbars.bookmarks.visibility" = "never"; + + # Hide pip controls + "media.videocontrols.picture-in-picture.video-toggle.enabled" = false; # Set homepage "browser.startup.homepage" = "about:blank"; @@ -254,4 +254,4 @@ in { }; }; }; -} +} \ No newline at end of file -- cgit v1.3.1