2023-03-07 15:19:18 +01:00
|
|
|
{ pkgs, inputs, ... }:
|
2023-01-12 20:49:08 +01:00
|
|
|
let
|
|
|
|
mkBasicSearchEngine = { aliases, url, param }: {
|
|
|
|
urls = [{
|
|
|
|
template = url;
|
|
|
|
params = [
|
|
|
|
{ name = param; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
|
|
|
|
definedAliases = aliases;
|
|
|
|
};
|
|
|
|
|
|
|
|
mkNixPackagesEngine = { aliases, type }:
|
|
|
|
let basicEngine = mkBasicSearchEngine
|
|
|
|
{
|
|
|
|
aliases = aliases;
|
|
|
|
url = "https://search.nixos.org/${type}";
|
|
|
|
param = "query";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
basicEngine // {
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
profiles.adrielus = {
|
|
|
|
# Unique user id
|
|
|
|
id = 0;
|
|
|
|
|
|
|
|
# Make this the default user
|
|
|
|
isDefault = true;
|
|
|
|
|
|
|
|
# Forcefully replace the search configuration
|
|
|
|
search.force = true;
|
|
|
|
|
|
|
|
# Set default search engine
|
|
|
|
search.default = "Google";
|
|
|
|
|
2023-03-07 15:19:18 +01:00
|
|
|
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
|
2023-03-14 20:57:07 +01:00
|
|
|
buster-captcha-solver
|
2023-03-07 15:19:18 +01:00
|
|
|
bypass-paywalls-clean
|
|
|
|
clearurls # removes ugly args from urls
|
2023-03-14 20:57:07 +01:00
|
|
|
don-t-fuck-with-paste # disallows certain websites from disabling pasting
|
2023-03-07 15:19:18 +01:00
|
|
|
firenvim # summon a nvim instance inside the browser
|
|
|
|
gesturefy # mouse gestures
|
2023-03-14 20:57:07 +01:00
|
|
|
i-dont-care-about-cookies
|
2023-03-07 15:19:18 +01:00
|
|
|
localcdn # caches libraries locally
|
|
|
|
lovely-forks # displays forks on github
|
|
|
|
octolinker # github import to link thingy
|
|
|
|
octotree # github file tree
|
|
|
|
privacy-badger # blocks some trackers
|
|
|
|
privacy-pass # captcha stuff
|
2023-03-14 20:57:07 +01:00
|
|
|
refined-github # a bunch of github modifications
|
2023-03-07 15:19:18 +01:00
|
|
|
return-youtube-dislikes
|
2023-03-14 20:57:07 +01:00
|
|
|
steam-database # adds info from steamdb on storepages
|
2023-03-07 15:19:18 +01:00
|
|
|
sponsorblock # skip youtube sponsors
|
2023-03-14 20:57:07 +01:00
|
|
|
skip-redirect # attempts to skip to the final reddirect for certain urls
|
|
|
|
terms-of-service-didnt-read
|
2023-03-07 15:19:18 +01:00
|
|
|
translate-web-pages
|
2023-03-14 20:57:07 +01:00
|
|
|
ublock-origin
|
|
|
|
unpaywall
|
|
|
|
user-agent-string-switcher
|
|
|
|
vimium-c # vim keybinds
|
|
|
|
youtube-shorts-block
|
2023-03-07 15:19:18 +01:00
|
|
|
];
|
|
|
|
|
2023-01-12 20:49:08 +01:00
|
|
|
# Specify custom search engines
|
|
|
|
search.engines = {
|
|
|
|
"Nix Packages" = mkNixPackagesEngine {
|
|
|
|
aliases = [ "@np" "@nix-packages" ];
|
|
|
|
type = "packages";
|
|
|
|
};
|
|
|
|
|
|
|
|
"Nix options" = mkNixPackagesEngine {
|
|
|
|
aliases = [ "@no" "@nix-options" ];
|
|
|
|
type = "options";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Purescript packages
|
|
|
|
"Pursuit" = mkBasicSearchEngine {
|
|
|
|
url = "https://pursuit.purescript.org/search";
|
2023-02-09 06:59:58 +01:00
|
|
|
param = "q";
|
2023-01-12 20:49:08 +01:00
|
|
|
aliases = [ "@ps" "@pursuit" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Wikipedia" = mkBasicSearchEngine {
|
|
|
|
url = "https://en.wikipedia.org/wiki/Special:Search";
|
|
|
|
param = "search";
|
|
|
|
aliases = [ "@wk" "@wikipedia" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Github" = mkBasicSearchEngine {
|
|
|
|
url = "https://github.com/search";
|
|
|
|
param = "q";
|
|
|
|
aliases = [ "@gh" "@github" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Youtube" = mkBasicSearchEngine {
|
|
|
|
url = "https://www.youtube.com/results";
|
|
|
|
param = "search_query";
|
|
|
|
aliases = [ "@yt" "@youtube" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Noita wiki" = mkBasicSearchEngine {
|
|
|
|
url = "https://noita.wiki.gg/index.php";
|
|
|
|
param = "search";
|
|
|
|
aliases = [ "@noita" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Rain world wiki" = mkBasicSearchEngine {
|
|
|
|
url = "https://rainworld.miraheze.org/w/index.php";
|
|
|
|
param = "search";
|
|
|
|
aliases = [ "@rw" "@rain-world" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Factorio wiki" = mkBasicSearchEngine {
|
|
|
|
url = "https://wiki.factorio.com/index.php";
|
|
|
|
param = "search";
|
|
|
|
aliases = [ "@fw" "@factorio-wiki" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Factorio mod portal" = mkBasicSearchEngine {
|
|
|
|
url = "https://mods.factorio.com/";
|
|
|
|
param = "query";
|
|
|
|
aliases = [ "@fm" "@factorio-mods" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
"Google".metaData.alias = "@g";
|
|
|
|
};
|
2023-03-16 17:39:46 +01:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
# Required for figma to be able to export to svg
|
|
|
|
"dom.events.asyncClipboard.clipboardItem" = true;
|
|
|
|
};
|
2023-01-12 20:49:08 +01:00
|
|
|
};
|
2023-01-15 23:04:11 +01:00
|
|
|
|
2023-03-12 05:24:25 +01:00
|
|
|
apps = {
|
|
|
|
# {{{ Job stuff
|
|
|
|
asana = {
|
|
|
|
url = "https://app.asana.com/";
|
|
|
|
icon = ./icons/asana.png;
|
|
|
|
displayName = "Asana";
|
|
|
|
id = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
clockodo = {
|
|
|
|
url = "https://my.clockodo.com/en/";
|
|
|
|
icon = ./icons/clockodo.png;
|
|
|
|
displayName = "Clockodo";
|
|
|
|
id = 2;
|
|
|
|
};
|
2023-03-07 15:19:18 +01:00
|
|
|
|
2023-03-12 05:24:25 +01:00
|
|
|
# }}}
|
|
|
|
|
|
|
|
gitlab = {
|
|
|
|
url = "https://gitlab.com";
|
|
|
|
icon = ./icons/gitlab.png;
|
|
|
|
displayName = "Gitlab";
|
|
|
|
id = 3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-01-12 20:49:08 +01:00
|
|
|
}
|