diff --git a/modules/apps/default.nix b/modules/apps/default.nix index d91cf11..9f5d60b 100644 --- a/modules/apps/default.nix +++ b/modules/apps/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - imports = [ ./rofi ./kitty.nix ./zathura.nix ./spotify.nix ]; + imports = [ ./rofi ./kitty.nix ./zathura.nix ./spotify.nix ./firefox.nix ]; home-manager.users.moritz.home.packages = with pkgs; [ neofetch keepassxc diff --git a/modules/apps/firefox.nix b/modules/apps/firefox.nix new file mode 100644 index 0000000..dd9007f --- /dev/null +++ b/modules/apps/firefox.nix @@ -0,0 +1,41 @@ +{ config, lib, pkgs, ... }: + +{ + home-manager.users.moritz.programs.firefox = { + enable = true; + profiles."default" = { + extraConfig = "\n"; + settings = { + + # Dont show warning when accessing about:config + "browser.aboutConfig.showWarning" = false; + + # Default Privacy Settings + "browser.contentblocking.category" = "strict"; + "privacy.donottrackheader.enabled" = true; + + # Hide bookmarks + "browser.toolbars.bookmarks.visibility" = "never"; + + # Smooth scrolling + "general.smoothScroll.lines.durationMaxMS" = 125; + "general.smoothScroll.lines.durationMinMS" = 125; + "general.smoothScroll.mouseWheel.durationMaxMS" = 200; + "general.smoothScroll.mouseWheel.durationMinMS" = 100; + "general.smoothScroll.msdPhysics.enabled" = true; + "general.smoothScroll.other.durationMaxMS" = 125; + "general.smoothScroll.other.durationMinMS" = 125; + "general.smoothScroll.pages.durationMaxMS" = 125; + "general.smoothScroll.pages.durationMinMS" = 125; + "mousewheel.min_line_scroll_amount" = 40; + "mousewheel.system_scroll_override_on_root_content.enabled" = true; + "mousewheel.system_scroll_override_on_root_content.horizontal.factor" = + 175; + "mousewheel.system_scroll_override_on_root_content.vertical.factor" = + 175; + "toolkit.scrollbox.horizontalScrollDistance" = 6; + "toolkit.scrollbox.verticalScrollDistance" = 2; + }; + }; + }; +}