mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
added firefox config
This commit is contained in:
parent
135c685973
commit
c09f4e4315
4 changed files with 111 additions and 13 deletions
97
dot_config/flake/modules/home/firefox/default.nix
Normal file
97
dot_config/flake/modules/home/firefox/default.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue