home/programs/browsers: add librewolf
This commit is contained in:
parent
f7211c4138
commit
e2d037b1f1
1 changed files with 42 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
|
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
imports = [inputs.nur.hmModules.nur];
|
||||||
# https://github.com/jchv/nixos-config/blob/402c2e612529870544e3a96d5d0cc1a239d003a5/modules/users/john/librewolf.nix#L14-L15
|
# https://github.com/jchv/nixos-config/blob/402c2e612529870544e3a96d5d0cc1a239d003a5/modules/users/john/librewolf.nix#L14-L15
|
||||||
home.file.".mozilla/firefox/profiles.ini".target = ".librewolf/profiles.ini";
|
home.file.".mozilla/firefox/profiles.ini".target = ".librewolf/profiles.ini";
|
||||||
home.file.".librewolf/nezia".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.mozilla/firefox/nezia";
|
home.file.".librewolf/nezia".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.mozilla/firefox/nezia";
|
||||||
|
@ -23,7 +25,18 @@ in {
|
||||||
};
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
nezia = {
|
nezia = {
|
||||||
|
extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||||
|
ublock-origin
|
||||||
|
proton-pass
|
||||||
|
darkreader
|
||||||
|
stylus
|
||||||
|
sponsorblock
|
||||||
|
return-youtube-dislikes
|
||||||
|
];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
"browser.urlbar.suggest.searches" = true;
|
||||||
|
"browser.search.suggest.enabled" = true;
|
||||||
"ui.key.menuAccessKeyFocuses" = false;
|
"ui.key.menuAccessKeyFocuses" = false;
|
||||||
"privacy.clearOnShutdown.cache" = false;
|
"privacy.clearOnShutdown.cache" = false;
|
||||||
"privacy.clearOnShutdown.cookies" = false;
|
"privacy.clearOnShutdown.cookies" = false;
|
||||||
|
@ -33,8 +46,10 @@ in {
|
||||||
"privacy.clearOnShutdown.offlineApps" = false;
|
"privacy.clearOnShutdown.offlineApps" = false;
|
||||||
"privacy.clearOnShutdown.sessions" = false;
|
"privacy.clearOnShutdown.sessions" = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://git.jacekpoz.pl/poz/niksos/src/commit/a48647a1c5bc6877a1100a65f4dc169b2fc11ed7/hosts/hape/firefox.nix
|
# https://git.jacekpoz.pl/poz/niksos/src/commit/a48647a1c5bc6877a1100a65f4dc169b2fc11ed7/hosts/hape/firefox.nix
|
||||||
search = {
|
search = {
|
||||||
|
default = "SearxNG";
|
||||||
engines = {
|
engines = {
|
||||||
"Nix Packages" = {
|
"Nix Packages" = {
|
||||||
urls = [
|
urls = [
|
||||||
|
@ -61,7 +76,7 @@ in {
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
definedAliases = ["@nw"];
|
definedAliases = ["@nw"];
|
||||||
};
|
};
|
||||||
"Home Manager Option Search" = {
|
"Home Manager Options" = {
|
||||||
urls = [{template = "https://home-manager-options.extranix.com/?release=master&query={searchTerms}";}];
|
urls = [{template = "https://home-manager-options.extranix.com/?release=master&query={searchTerms}";}];
|
||||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
definedAliases = ["@hm"];
|
definedAliases = ["@hm"];
|
||||||
|
@ -71,6 +86,32 @@ in {
|
||||||
icon = "https://archlinux.org/favicon.ico";
|
icon = "https://archlinux.org/favicon.ico";
|
||||||
definedAliases = ["@aw"];
|
definedAliases = ["@aw"];
|
||||||
};
|
};
|
||||||
|
"SearxNG" = {
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
rels = ["results"];
|
||||||
|
template = "https://searx.tiekoetter.com/search";
|
||||||
|
params = [
|
||||||
|
{
|
||||||
|
name = "q";
|
||||||
|
value = "{searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
rels = ["suggestions"];
|
||||||
|
template = "https://searx.tiekoetter.com/autocompleter";
|
||||||
|
params = [
|
||||||
|
{
|
||||||
|
name = "q";
|
||||||
|
value = "{searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"type" = "application/x-suggestions+json";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
definedAliases = ["@sx"];
|
||||||
|
};
|
||||||
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue