re-indent firefox and stuff

This commit is contained in:
Miranda Marquez 2024-06-04 13:51:24 -08:00
parent 7fcf082811
commit ef7271e4a6

View File

@ -5,29 +5,29 @@
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped { package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = { extraPolicies = {
DisableTelemetry = true; DisableTelemetry = true;
# add policies here... # add policies here...
/* ---- PREFERENCES ---- */ /* ---- PREFERENCES ---- */
# Set preferences shared by all profiles. # Set preferences shared by all profiles.
Preferences = { Preferences = {
"browser.contentblocking.category" = { Value = "strict"; Status = "locked"; }; "browser.contentblocking.category" = { Value = "strict"; Status = "locked"; };
# add global preferences here... # add global preferences here...
};
}; };
}; };
};
policies = { policies = {
ExtensionSettings = with builtins; ExtensionSettings = with builtins;
let extension = shortId: uuid: { let extension = shortId: uuid: {
name = uuid; name = uuid;
value = { value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi"; install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed"; installation_mode = "normal_installed";
}; };
}; };
in listToAttrs [ in listToAttrs [
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp") (extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
(extension "ublock-origin" "uBlock0@raymondhill.net") (extension "ublock-origin" "uBlock0@raymondhill.net")
@ -35,38 +35,40 @@
(extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me") (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me")
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}") (extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
(extension "mark-my-search" "{3c87dcad-dbbd-4be1-b07b-b6d0739b0aec}") (extension "mark-my-search" "{3c87dcad-dbbd-4be1-b07b-b6d0739b0aec}")
(extension "vimium" "{d7742d87-e61d-4b78-b8a1-b469842139fa}") (extension "vimium" "{d7742d87-e61d-4b78-b8a1-b469842139fa}")
(extension "beautiful-alpen-blue" "{b96cf6da-f1b1-4b9d-9e69-98e7da9dd7c3}") (extension "beautiful-alpen-blue" "{b96cf6da-f1b1-4b9d-9e69-98e7da9dd7c3}")
]; ];
# To add additional extensions, find it on addons.mozilla.org, find # To add additional extensions, find it on addons.mozilla.org, find
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/) # the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
# Then, download the XPI by filling it in to the install_url template, unzip it, # Then, download the XPI by filling it in to the install_url template, unzip it,
# run `jq .browser_specific_settings.gecko.id manifest.json` or # run `jq .browser_specific_settings.gecko.id manifest.json` or
# `jq .applications.gecko.id manifest.json` to get the UUID # `jq .applications.gecko.id manifest.json` to get the UUID
# mir note: or just go to about:debugging#/runtime/this-firefox and copy the first field "Extension ID" # mir note: or just go to about:debugging#/runtime/this-firefox and copy the first field "Extension ID"
}; };
profiles = { profiles = {
default = { default = {
id = 0; id = 0;
name = "default"; name = "default";
isDefault = true; isDefault = true;
settings = { settings = {
"browser.startup.homepage" = "https://search.marq42.xyz"; "browser.startup.homepage" = "https://search.marq42.xyz";
"browser.search.defaultenginename" = "searx"; "browser.search.defaultenginename" = "searx";
"browser.search.order.1" = "searx"; "browser.search.order.1" = "searx";
}; };
search = { search = {
force = true; force = true;
default = "searx"; default = "searx";
order = [ "searx" "Google" ]; order = [ "searx" "Google" ];
}; };
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [ # userChrome = ''
# ublock-origin # !important @import "~/.mozilla/safari-userchrome.css";
# vimium # '';
# mark-my-search
# ];
}; };
}; };
}; };
} home.file.".mozilla/safari-userchrome.css".source = builtins.fetchurl {
url = "https://gist.githubusercontent.com/janoamaral/5c0a6e944ca31d2a6a51712d0c453d48/raw/6e1f0d1e3e31400d467302da3198c3e9c3caa647/userChrome.css";
sha256 = "19hbf9kf93ggryabbxz5h9nsm2ymzjg369b8bld818a515cx4vhc";
};
}