From 6a83f31cee6e6ca5d175ffa51ad78d1db157a13e Mon Sep 17 00:00:00 2001 From: willemml Date: Tue, 28 Feb 2023 09:38:49 -0800 Subject: [PATCH] firefox config update --- home/default.nix | 2 +- home/programs.nix | 30 +++++++++++++++++++----------- overlays/default.nix | 2 +- system/common.nix | 2 +- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/home/default.nix b/home/default.nix index b2411db..a6d9727 100644 --- a/home/default.nix +++ b/home/default.nix @@ -8,7 +8,7 @@ rec { file = { ".config/nix/nix.conf".text = '' allow-dirty = true - experimental-features = flakes nix-command + experimental-features = flakes nix-command repl-flake builders-use-substitutes = true ''; ".config/nixpkgs/config.nix".text = '' diff --git a/home/programs.nix b/home/programs.nix index 5ef5989..602ae09 100644 --- a/home/programs.nix +++ b/home/programs.nix @@ -70,22 +70,30 @@ }; }; settings = { + "app.update.auto" = false; + "permissions.default.camera" = 2; + "permissions.default.microphone" = 2; + "permissions.default.desktop-notifications" = 2; + "print_printer" = "Mozilla Save to PDF"; + "media.autoplay.default" = 5; + "general.autoScroll" = false; + "extensions.recommendations.hideNotice" = true; + "browser.newtabpage.activity-stream.feeds.section.topstories" = false; + "browser.newtabpage.activity-stream.feeds.topsites" = false; + "browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false; + "browser.newtabpage.activity-stream.section.highlights.includePocket" = false; + "browser.newtabpage.activity-stream.section.highlights.includeVisited" = false; + "browser.newtabpage.activity-stream.showSponsored" = false; + "browser.newtabpage.activity-stream.showSponsoredTopSites" = false; + "browser.newtabpage.enabled" = false; + "signon.rememberSignons" = false; + "privacy.donottrackheader.enabled" = true; "browser.startup.homepage" = ""; "browser.search.region" = "CA"; "browser.search.isUS" = false; "distribution.searchplugins.defaultLocale" = "en-CA"; "general.useragent.locale" = "en-CA"; "browser.bookmarks.showMobileBookmarks" = true; - "browser.newtabpage.pinned" = [ - { - title = "Notes"; - url = "https://github.com/willemml/org-notes"; - } - { - title = "Dotfiles"; - url = "https://github.com/willemml/dotfiles.nix"; - } - ]; }; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ browserpass @@ -217,7 +225,7 @@ export GPG_TTY=$(tty) eval $(gpg-agent --daemon -q 2>/dev/null) function gsearch() { - open -a Safari "https://google.com/search?q=$(echo $@ | sed -e 's/ /%20/g')" + web "https://google.com/search?q=$(echo $@ | sed -e 's/ /%20/g')" } nixify() { if [ ! -e ./.envrc ]; then diff --git a/overlays/default.nix b/overlays/default.nix index dd5f773..cd18ed4 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,7 +1,7 @@ self: super: { tree-sitter-grammars = super.tree-sitter-grammars // { tree-sitter-python = super.tree-sitter-grammars.tree-sitter-python.overrideAttrs (_: { - nativeBuildInputs = [ self.nodejs self.tree-sitter ]; + nativeBuildInputs = [ super.nodejs super.tree-sitter ]; configurePhase = '' tree-sitter generate --abi 13 src/grammar.json ''; diff --git a/system/common.nix b/system/common.nix index 2c15596..aa5e89a 100644 --- a/system/common.nix +++ b/system/common.nix @@ -13,7 +13,7 @@ generateRegistryFromInputs = true; linkInputs = true; package = pkgs.nix; - settings.experimental-features = [ "nix-command" "flakes" ]; + settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ]; settings.trusted-users = [ "root" "willem" ]; };