From 7c93cd7b9a14a0f02bf482d8279f865380bedbfe Mon Sep 17 00:00:00 2001 From: Jakub Trzeciak Date: Mon, 23 Oct 2023 13:19:40 +0200 Subject: Sway --- home-manager/firefox.nix | 109 ----------------------------------------------- 1 file changed, 109 deletions(-) delete mode 100644 home-manager/firefox.nix (limited to 'home-manager/firefox.nix') diff --git a/home-manager/firefox.nix b/home-manager/firefox.nix deleted file mode 100644 index 0a3b922..0000000 --- a/home-manager/firefox.nix +++ /dev/null @@ -1,109 +0,0 @@ -{ config, pkgs, theme, ... }: - -let - firefox-i2p = pkgs.writeShellScriptBin "firefox-i2p" ''firefox -p i2p''; - firefox-work = pkgs.writeShellScriptBin "firefox-work" ''firefox -p work''; - - # Show all packages - `nix flake show "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"` - default-extensions = with pkgs.nur.repos.rycee.firefox-addons; [ - ublock-origin - decentraleyes - clearurls - darkreader - noscript - - # ImageBlock - Blure Images - # ClearlyRead - - # privacy-badger - ]; - - default-settings = { - "browser.search.region" = "US"; - - "app.normandy.first_run" = false; - "toolkit.telemetry.reportingpolicy.firstRun" = false; - "trailhead.firstrun.didSeeAboutWelcome" = true; - - "browser.startup.homepage" = "https://jptrzy.xyz"; - - "browser.compactmode.show" = true; - "browser.uidensity" = 1; - #"browser.uiCustomization.state" = ''{"placements":{"widget-overflow-fixed-list":[],"unified-extensions-area":["ublock0_raymondhill_net-browser-action"],"nav-bar":["back-button","forward-button","stop-reload-button","customizableui-special-spring6","urlbar-container","customizableui-special-spring7","downloads-button","jid1-mnnxcxisbpnsxq_jetpack-browser-action","unified-extensions-button"],"toolbar-menubar":["menubar-items"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"PersonalToolbar":["personal-bookmarks"]},"seen":["save-to-pocket-button","jid1-mnnxcxisbpnsxq_jetpack-browser-action","ublock0_raymondhill_net-browser-action","developer-button"],"dirtyAreaCache":["unified-extensions-area","nav-bar","TabsToolbar","widget-overflow-fixed-list","PersonalToolbar"],"currentVersion":19,"newElementCount":7}''; - - "media.ffmpeg.vaapi.enabled" = true; - #"xpinstall.signatures.required" = false; # TODO - it is a security issue - }; -in { - programs.firefox = { - enable = true; - - package = pkgs.wrapFirefox pkgs.firefox-unwrapped { - # https://github.com/mozilla/policy-templates#enterprisepoliciesenabled - extraPolicies = { - CaptivePortal = false; - DisableFirefoxStudies = true; - DisablePocket = true; - DisableTelemetry = true; - DisableFirefoxAccounts = true; - NoDefaultBookmarks = true; - OfferToSaveLogins = false; - OfferToSaveLoginsDefault = false; - PasswordManagerEnabled = false; - FirefoxHome = { - Search = true; - Pocket = false; - Snippets = false; - TopSites = false; - Highlights = false; - }; - UserMessaging = { - ExtensionRecommendations = false; - SkipOnboarding = true; - }; - }; - }; - - profiles = { - i2p = { - isDefault = false; id = 2; - name = "i2p"; - - settings = { - "javascript.enabled" = false; - "keyword.enabled" = true; - - "network.proxy.type" = 1; - "network.proxy.share_proxy_settings" = true; - - "network.proxy.http" = "127.0.0.1"; - "network.proxy.http_port" = 4444; - - "network.proxy.ssl" = "127.0.0.1"; - "network.proxy.ssl_port" = 4444; - }; - }; - - work = { - isDefault = false; id = 1; - name = "work"; - - extensions = default-extensions; - settings = default-settings; - }; - - default = { - isDefault = true; id = 0; - name = "main"; - - extensions = default-extensions; - settings = default-settings; - }; - }; - }; - - home.packages = [ - firefox-i2p - firefox-work - ]; -} -- cgit v1.2.3