firefox config update

This commit is contained in:
willemml 2023-02-28 09:38:49 -08:00
parent 664f1f204c
commit 6a83f31cee
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
4 changed files with 22 additions and 14 deletions

View file

@ -8,7 +8,7 @@ rec {
file = { file = {
".config/nix/nix.conf".text = '' ".config/nix/nix.conf".text = ''
allow-dirty = true allow-dirty = true
experimental-features = flakes nix-command experimental-features = flakes nix-command repl-flake
builders-use-substitutes = true builders-use-substitutes = true
''; '';
".config/nixpkgs/config.nix".text = '' ".config/nixpkgs/config.nix".text = ''

View file

@ -70,22 +70,30 @@
}; };
}; };
settings = { 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.startup.homepage" = "";
"browser.search.region" = "CA"; "browser.search.region" = "CA";
"browser.search.isUS" = false; "browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "en-CA"; "distribution.searchplugins.defaultLocale" = "en-CA";
"general.useragent.locale" = "en-CA"; "general.useragent.locale" = "en-CA";
"browser.bookmarks.showMobileBookmarks" = true; "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; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
browserpass browserpass
@ -217,7 +225,7 @@
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
eval $(gpg-agent --daemon -q 2>/dev/null) eval $(gpg-agent --daemon -q 2>/dev/null)
function gsearch() { 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() { nixify() {
if [ ! -e ./.envrc ]; then if [ ! -e ./.envrc ]; then

View file

@ -1,7 +1,7 @@
self: super: { self: super: {
tree-sitter-grammars = super.tree-sitter-grammars // { tree-sitter-grammars = super.tree-sitter-grammars // {
tree-sitter-python = super.tree-sitter-grammars.tree-sitter-python.overrideAttrs (_: { tree-sitter-python = super.tree-sitter-grammars.tree-sitter-python.overrideAttrs (_: {
nativeBuildInputs = [ self.nodejs self.tree-sitter ]; nativeBuildInputs = [ super.nodejs super.tree-sitter ];
configurePhase = '' configurePhase = ''
tree-sitter generate --abi 13 src/grammar.json tree-sitter generate --abi 13 src/grammar.json
''; '';

View file

@ -13,7 +13,7 @@
generateRegistryFromInputs = true; generateRegistryFromInputs = true;
linkInputs = true; linkInputs = true;
package = pkgs.nix; package = pkgs.nix;
settings.experimental-features = [ "nix-command" "flakes" ]; settings.experimental-features = [ "nix-command" "flakes" "repl-flake" ];
settings.trusted-users = [ "root" "willem" ]; settings.trusted-users = [ "root" "willem" ];
}; };