firefox: port bookmarks and engines from secrets

This commit is contained in:
Oystein Kristoffer Tveit 2023-12-18 14:47:02 +01:00
parent f7b893b10c
commit 82bcb7d46d
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 294 additions and 3 deletions

View File

@ -0,0 +1,118 @@
let
link = name: url: { inherit name url; };
short = short: name: url: { name = short; inherit url; };
dir = name: bookmarks: { inherit name bookmarks; };
in [
(short "tr" "Translate" "https://translate.google.no/?hl=no")
(short "gm" "Gmail" "https://mail.google.com/mail/u/0/#inbox")
(short "" "Jisho" "https://jisho.org/?color_theme=dark")
(short "Gitea" "Gitea - nani.wtf" "https://git.nani.wtf/explore/repos")
(link "GitHub" "http://github.com")
(short "/u/" "danger/u/" "https://dangeru.us/")
(link "PVV" "https://www.pvv.ntnu.no/")
(short "PVVM" "PVV Mail" "https://webmail2.pvv.ntnu.no/roundcube/")
(short "ΩV" "Omega Verksted" "https://omegav.no/")
(dir "Nix" [
(link "Nixpkgs" "https://github.com/NixOS/nixpkgs")
(link "Home-manager" "https://github.com/nix-community/home-manager")
(link "Nixpkgs Manual" "https://ryantm.github.io/nixpkgs/")
(link "Nix Lib Manual" "https://teu5us.github.io/nix-lib.html")
(link "Nix Lib" "https://github.com/NixOS/nixpkgs/tree/master/lib")
(link "Nix Lib - Strings" "https://github.com/NixOS/nixpkgs/blob/master/lib/strings.nix")
(link "Nix Lib - Lists" "https://github.com/NixOS/nixpkgs/blob/master/lib/lists.nix")
(link "Nix Lib - Attrs" "https://github.com/NixOS/nixpkgs/blob/master/lib/attrs.nix")
(link "Noogle" "https://noogle.dev/")
(link "Nixpkgs Hound" "https://search.nix.gsc.io/")
(short "NXPR" "Nixpkgs PR Progress Tracker" "https://nixpk.gs/pr-tracker.html")
(link "Nix package versions" "https://lazamar.co.uk/nix-versions/")
(link "Pkgs on Nix" "https://pkgs.on-nix.com/")
(link "NixOS Infra Status" "https://status.nixos.org/")
(link "NixOS R13Y" "https://r13y.com/")
])
(dir "CTF" [
(link "HackTheBox" "https://www.hackthebox.eu/")
(link "TryHackMe" "https://tryhackme.com/dashboard")
(link "OverTheWire" "https://overthewire.org/wargames/")
(link "NetGarage" "https://io.netgarage.org/")
(link "Exploit Education" "http://exploit.education/")
])
(dir "Misc & Tools" [
(link "ASCIIFlow" "https://asciiflow.com/#/")
(link "CopyChar" "https://copychar.cc/")
(link "CyberChef" "https://gchq.github.io/CyberChef/")
(link "Device Info" "https://www.deviceinfo.me/")
(link "Diagrams" "https://app.diagrams.net/")
(link "FakeMail" "http://www.fakemailgenerator.com/")
(link "FilePizza" "https://file.pizza/")
(link "IPLeak" "https://ipleak.net/")
(link "LaTeX" "https://www.codecogs.com/latex/eqneditor.php")
(link "ManualsLib" "https://www.manualslib.com/")
(link "Namechk" "https://namechk.com/")
(link "NamingSchemes" "https://namingschemes.com/")
(link "Oryx" "https://configure.ergodox-ez.com/ergodox-ez/layouts/53Pyn/latest/0")
(link "Pastebin" "https://pastebin.com/u/h7x4")
(link "PDFescape" "https://www.pdfescape.com/")
(link "Pixabay" "https://pixabay.com/")
(link "Pixlr" "https://pixlr.com/e/")
(link "Privnote" "https://privnote.com/")
(link "Quiver" "https://q.uiver.app/")
(short "RD" "RomajiDesu" "http://www.romajidesu.com/")
(link "waaai" "https://waa.ai/")
(link "NitroType" "https://www.nitrotype.com/race")
(link "Duolingo" "https://www.duolingo.com/learn")
(link "Kanji Garden" "https://kanji.garden/")
(link "Compiler Explorer" "https://godbolt.org/")
(link "Readme.so" "https://readme.so/")
(link "Regexr" "https://regexr.com/")
(link "Keybr" "https://www.keybr.com/")
(link "HackerRank" "https://www.hackerrank.com/")
(link "Project Euler" "https://projecteuler.net/archives")
(link "FlutterGems" "https://fluttergems.dev/")
(link "BashOneliners" "http://www.bashoneliners.com/oneliners/popular/")
(link "PosterDB" "https://theposterdb.com/")
(link "WikiChip" "https://en.wikichip.org/wiki/WikiChip")
(link "Gitea - dodsorf.as" "https://git.dodsorf.as/explore/repos")
(link "Gitea - feal.no" "https://git.feal.no/explore/repos")
(link "Gitea - glados.no" "https://git.glados.no/explore/repos")
(link "Chinese Text Project" "https://ctext.org/")
(link "Just delete me" "https://backgroundchecks.org/justdeleteme/")
(link "Unicode Resources" "http://xahlee.info/comp/unicode_essays_index.html")
(link "UTF8 Everywhere" "https://utf8everywhere.org/")
(link "Polar" "https://getpolarized.io/")
(link "Everything I Know" "https://wiki.nikitavoloboev.xyz/")
(link "Aphyr Posts" "https://aphyr.com/")
(link "Cursed Computer Iceberg" "https://suricrasia.online/iceberg/")
(link "EPWING dicts" "https://www.japaneselanguagetools.com/docs/other_dics.html")
(link "Itazuraneko" "https://itazuraneko.neocities.org/#learn")
(link " - The Gear Of Seasons" "https://hexe.net/")
(link "jpdb" "https://jpdb.io/")
])
(dir "Selfhosting" [
(link "NoIP" "https://my.noip.com/#!/dynamic-dns")
(link "Epik" "https://registrar.epik.com/domain/portfolio")
(link "ASUS Gateway" "http://router.asus.com/")
(link "Cloudflare Dashboard" "https://dash.cloudflare.com")
(link "WWW" "https://www.nani.wtf/")
(link "MAdmin" "https://madmin.nani.wtf")
(link "Git" "https://git.nani.wtf/explore/repos/")
(link "Hydra" "https://hydra.nani.wtf/")
(link "Docs" "https://docs.nani.wtf/")
(link "Grafana" "https://log.nani.wtf/")
])
(dir "NTNU" [
(link "Innsida" "https://innsida.ntnu.no/start#/feed/")
(link "Outlook" "https://outlook.office.com/mail/inbox")
(link "Blackboard" "https://ntnu.blackboard.com/")
(link "Grades" "https://grades.no/")
(link "Wikipendium" "https://www.wikipendium.no/")
(link "Inspera" "https://ntnu.inspera.no/")
(link "Shorty" "https://s.ntnu.no/")
(link "NTNU Tjenester" "https://i.ntnu.no/alt-innhold")
(link "EMNR" "https://emnr.no/")
])
]

View File

@ -0,0 +1,173 @@
{ pkgs, ... }:
{
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
"Wikipedia (en)".metaData.hidden = true;
"Google".metaData.alias = "gg";
"DuckDuckGo".metaData.alias = "dd";
"Arch Package Repository" = {
urls = [{
template = "https://www.archlinux.org/packages/";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/arch_linux.svg";
definedAliases = [ "pac" ];
};
"Arch Wiki" = {
urls = [{
template = "https://wiki.archlinux.org/index.php";
params = [
{ name = "title"; value = "Special:Search"; }
{ name = "search"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/arch_linux.svg";
definedAliases = [ "aw" ];
};
"AUR" = {
urls = [{
template = "https://aur.archlinux.org/packages/";
params = [
{ name = "O"; value = "0"; }
{ name = "K"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/arch_linux.svg";
definedAliases = [ "aur" ];
};
"Dart Packages" = {
urls = [{
template = "https://pub.dev/packages";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/dart.svg";
definedAliases = [ "pub" ];
};
"GitHub" = {
urls = [{
template = "https://github.com/search";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/github.svg";
definedAliases = [ "gh" ];
};
"HomeManager Options" = {
urls = [{
template = "https://mipmip.github.io/home-manager-option-search/?{searchTerms}";
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/nixos.svg";
definedAliases = [ "hms" ];
};
"Hoogle" = {
urls = [{
template = "https://hoogle.haskell.org/";
params = [{ name = "hoogle"; value = "{searchTerms}"; }];
}];
# TODO: this has got to have an icon of some sort...
# icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/haskell.svg";
definedAliases = [ "hg" ];
};
"Melpa" = {
urls = [{
template = "https://melpa.org/";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
definedAliases = [ "mel" ];
};
"MyAnimeList" = {
urls = [{
template = "https://myanimelist.net/anime.php";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
definedAliases = [ "mal" ];
};
"NixOS Options" = {
urls = [{
template = "https://search.nixos.org/options";
params = [{ name = "query"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/nixos.svg";
definedAliases = [ "nxo" ];
};
"Nixpkgs Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [{ name = "query"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/nixos.svg";
definedAliases = [ "nxp" ];
};
"Pixabay" = {
urls = [{
template = "https://pixabay.com/images/search/{searchTerms}/";
}];
definedAliases = [ "pix" "pxb" ];
};
"RomajiDesu" = {
urls = [{
template = "https://www.romajidesu.com/dictionary/meaning-of-{searchTerms}.html";
}];
definedAliases = [ "rd" "rom" ];
};
"SynonymOrdboka" = {
urls = [{
template = "https://www.synonymordboka.no/no/";
params = [{ name = "q"; value = "{searchTerms}"; }];
}];
definedAliases = [ "syn" ];
};
"Translate" = {
urls = [{
template = "https://translate.google.com/?#auto|auto|{searchTerms}";
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/google.svg";
definedAliases = [ "tr" ];
};
"Unicode Character Table" = {
urls = [{
template = "https://unicode-table.com/en/search/?p&q={searchTerms}";
}];
definedAliases = [ "ut" ];
};
"YouTube" = {
urls = [{
template = "https://www.youtube.com/results";
params = [{ name = "search_query"; value = "{searchTerms}"; }];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/youtube.svg";
definedAliases = [ "yt" ];
};
"" = {
urls = [{
template = "https://jisho.org/search/{searchTerms}";
params = [{ name = "color_theme"; value = "dark"; }];
}];
definedAliases = [ "js" ];
};
"" = {
urls = [{
template = "https://jisho.org/search/%23kanji%20{searchTerms}";
params = [{ name = "color_theme"; value = "dark"; }];
}];
definedAliases = [ "kan" ];
};
}

View File

@ -1,15 +1,15 @@
{ pkgs, secrets, ... }: { pkgs, ... }:
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.h7x4 = { profiles.h7x4 = {
bookmarks = [{ bookmarks = [{
toolbar = true; toolbar = true;
bookmarks = secrets.browser.bookmarks; bookmarks = import ./browser/bookmarks.nix;
}]; }];
search = { search = {
default = "Google"; default = "Google";
engines = secrets.browser.engines { inherit pkgs; }; engines = import ./browser/engines.nix { inherit pkgs; };
force = true; force = true;
}; };
settings = {}; settings = {};