diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-01 18:06:48 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-01 19:08:51 +0530 |
commit | 5c48d5ad41221dbfa186701ba40404bd2571c242 (patch) | |
tree | 5a55468509d7d1ef022ab7e05562b026fa01b9d9 | |
parent | 1f81e431b76d2273164b57c26f4450bfd11f64b0 (diff) |
home-manager/wayland/firefox: init
-rw-r--r-- | home/wayland/home.nix | 1 | ||||
-rw-r--r-- | home/wayland/modules/firefox.nix | 87 | ||||
-rw-r--r-- | nixos/cez/modules/wayland.nix | 19 |
3 files changed, 92 insertions, 15 deletions
diff --git a/home/wayland/home.nix b/home/wayland/home.nix index 9e3f4ad..fa36eb5 100644 --- a/home/wayland/home.nix +++ b/home/wayland/home.nix @@ -4,5 +4,6 @@ ./modules/foot.nix ./modules/zathura.nix ./modules/mako.nix + ./modules/firefox.nix ]; } diff --git a/home/wayland/modules/firefox.nix b/home/wayland/modules/firefox.nix new file mode 100644 index 0000000..39e0061 --- /dev/null +++ b/home/wayland/modules/firefox.nix @@ -0,0 +1,87 @@ +{ ... }: { + programs.firefox = { + enable = true; + policies = { + DisableFirefoxAccounts = true; + DisablePocket = true; + DisableTelemetry = true; + DisplayBookmarksToolbar = "never"; + OfferToSaveLogins = false; + OverrideFirstRunPage = ""; + NoDefaultBookmarks = true; + DontCheckDefaultBrowser = true; + + FirefoxHome = { + Locked = true; + TopSites = false; + Highlights = false; + Snippets = false; + Pocket = false; + }; + + FirefoxSuggest = { + Locked = true; + SponsoredSuggestions = false; + }; + + ExtensionSettings = { + "uBlock0@raymondhill.net" = { + installation_mode = "force_installed"; + default_area = "menupanel"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + }; + "jid1-MnnxcxisBPnSXQ@jetpack" = { + installation_mode = "force_installed"; + default_area = "menupanel"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi"; + }; + "{21f1ba12-47e1-4a9b-ad4e-3a0260bbeb26}" = { + installation_mode = "force_installed"; + default_area = "menupanel"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/remove-youtube-s-suggestions/latest.xpi"; + }; + }; + }; + + profiles."default".settings = { + "media.ffmpeg.vaapi.enabled" = true; + + "browser.uiCustomization.state" = builtins.toJSON { + currentVersion = 1337; + + placements = { + widget-overflow-fixed-list = []; + unified-extensions-area = []; + nav-bar = [ + "back-button" + "forward-button" + "stop-reload-button" + "customizableui-special-spring1" + "urlbar-container" + "customizableui-special-spring2" + "downloads-button" + "unified-extensions-button" + ]; + toolbar-menubar = [ "menubar-items" ]; + TabsToolbar = [ + "tabbrowser-tabs" + "new-tab-button" + "alltabs-button" + ]; + }; + + dirtyAreaCache = [ + "nav-bar" + "toolbar-menubar" + "TabsToolbar" + ]; + }; + + "browser.newtabpage.activity-stream.default.sites" = ""; + "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; + }; + }; +} diff --git a/nixos/cez/modules/wayland.nix b/nixos/cez/modules/wayland.nix index acc0191..1ce04cf 100644 --- a/nixos/cez/modules/wayland.nix +++ b/nixos/cez/modules/wayland.nix @@ -1,9 +1,6 @@ -{ config, pkgs, lib, ... }: - -let +{ config, pkgs, ... }: let user = config.userdata.name; -in -{ +in { # pkgs environment.systemPackages = with pkgs; [ bemenu @@ -58,23 +55,15 @@ in services = { seatd.enable = true; dbus = { - implementation = "broker"; enable = true; + implementation = "broker"; }; }; programs = { gnupg.agent = { enable = true; - settings.pinentry-program = lib.mkForce "${pkgs.pinentry-bemenu}/bin/pinentry-bemenu"; - }; - firefox = { - enable = true; - preferences = { - "media.ffmpeg.vaapi.enabled" = true; - "gfx.webrender.all" = true; - "identity.fxaccounts.enabled" = false; - }; + pinentryPackage = pkgs.pinentry-bemenu; }; }; |