mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
97 lines
2.4 KiB
Nix
97 lines
2.4 KiB
Nix
{
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: {
|
|
home.file.".mozilla/firefox/default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
|
|
|
programs.firefox = {
|
|
enable = true;
|
|
|
|
policies = {
|
|
DisplayMenuBar = "never"; # Previously appeared when pressing alt
|
|
|
|
Homepage.StartPage = "previous-session";
|
|
};
|
|
|
|
profiles.default = {
|
|
name = "default";
|
|
|
|
isDefault = true;
|
|
search = {
|
|
force = true;
|
|
default = "maapl";
|
|
};
|
|
userChrome = ''
|
|
@import "firefox-gnome-theme/userChrome.css";
|
|
'';
|
|
userContent = ''
|
|
@import "firefox-gnome-theme/userContent.css";
|
|
'';
|
|
extraConfig = lib.readFile "${inputs.firefox-gnome-theme}/configuration/user.js";
|
|
|
|
search.engines = {
|
|
"google".metaData.hidden = true;
|
|
"bing".metaData.hidden = true;
|
|
"ebay".metaData.hidden = true;
|
|
"amazondotcom-us".metaData.hidden = true;
|
|
"wikipedia".metaData.hidden = true;
|
|
|
|
"Hands Of Blue" = {
|
|
urls = lib.singleton {
|
|
template = "https://search.mayoff.ca";
|
|
params =
|
|
lib.attrsToList
|
|
{
|
|
"q" = "{searchTerms}";
|
|
};
|
|
};
|
|
};
|
|
|
|
"maapl" = {
|
|
urls = lib.singleton {
|
|
template = "https://maapl.net/";
|
|
params =
|
|
lib.attrsToList
|
|
{
|
|
"q" = "{searchTerms}";
|
|
};
|
|
};
|
|
icon = "https://maapl.net/favicon.ico";
|
|
};
|
|
|
|
"Github Nix Code" = {
|
|
urls =
|
|
lib.singleton
|
|
{
|
|
template = "https://github.com/search";
|
|
params =
|
|
lib.attrsToList # Thanks to xunuwu on github for being a reference to use of these functions
|
|
|
|
{
|
|
"type" = "code";
|
|
"q" = "lang:nix NOT is:fork {searchTerms}";
|
|
};
|
|
};
|
|
|
|
icon = "https://github.com/favicon.ico";
|
|
definedAliases = ["@gn"];
|
|
};
|
|
|
|
"MyNixOS" = {
|
|
urls =
|
|
lib.singleton
|
|
{
|
|
template = "https://mynixos.com/search";
|
|
params =
|
|
lib.attrsToList
|
|
{
|
|
"q" = "{searchTerms}";
|
|
};
|
|
};
|
|
definedAliases = ["@mn"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|