firefox and typst conifg
This commit is contained in:
parent
e5b0bd046d
commit
035d73e16c
2 changed files with 124 additions and 102 deletions
|
@ -10,113 +10,128 @@ in mkIf conf.apps.enable {
|
||||||
"default" = {
|
"default" = {
|
||||||
id = 0;
|
id = 0;
|
||||||
|
|
||||||
search.default = "Googlee";
|
search = {
|
||||||
search.privateDefault = "Googlee";
|
default = "DuckDuckGoo";
|
||||||
search.engines = {
|
privateDefault = "DuckDuckGoo";
|
||||||
"DuckDuckGo".metaData.hidden = true;
|
engines = {
|
||||||
"Google".metaData.hidden = true;
|
"DuckDuckGo".metaData.hidden = true;
|
||||||
"Amazon.com".metaData.hidden = true;
|
"Google".metaData.hidden = true;
|
||||||
"Bing".metaData.hidden = true;
|
"Amazon.com".metaData.hidden = true;
|
||||||
"Wikipedia (en)".metaData.hidden = true;
|
"Bing".metaData.hidden = true;
|
||||||
"Startpage" = {
|
"Wikipedia (en)".metaData.hidden = true;
|
||||||
urls = [{
|
"DuckDuckGoo" = {
|
||||||
template = "https://startpage.com/sp/search";
|
urls = [{
|
||||||
params = [
|
template = "https://duckduckgo.com/";
|
||||||
{ name = "query"; value = "{searchTerms}"; }
|
params = [
|
||||||
];
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
}];
|
];
|
||||||
definedAliases = [ "@sp" ];
|
}];
|
||||||
|
definedAliases = [ "@ddg" ];
|
||||||
|
};
|
||||||
|
"Googlee" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://google.com/search";
|
||||||
|
params = [
|
||||||
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@g" ];
|
||||||
|
};
|
||||||
|
"Wikipedia" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://en.wikipedia.org/wiki/Special:Search";
|
||||||
|
params = [
|
||||||
|
{ name = "search"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@wiki" ];
|
||||||
|
};
|
||||||
|
"YouTube" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://youtube.com/results";
|
||||||
|
params = [
|
||||||
|
{ name = "search_query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@yt" ];
|
||||||
|
};
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "channel"; value = "unstable"; }
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
"Nix Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "channel"; value = "unstable"; }
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
"Arch Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://wiki.archlinux.org/index.php";
|
||||||
|
params = [
|
||||||
|
{ name = "search"; value = "{searchTerms}"; }
|
||||||
|
{ name = "fulltext"; value = "1"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@aw" ];
|
||||||
|
};
|
||||||
|
"Github" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://github.com/search";
|
||||||
|
params = [
|
||||||
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
|
{ name = "type"; value = "repositories"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
definedAliases = [ "@gh" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"DuckDuckGoo" = {
|
force = true;
|
||||||
urls = [{
|
order = [
|
||||||
template = "https://duckduckgo.com/";
|
"DuckDuckGoo"
|
||||||
params = [
|
"Googlee"
|
||||||
{ name = "q"; value = "{searchTerms}"; }
|
"Wikipedia"
|
||||||
];
|
"YouTube"
|
||||||
}];
|
"Nix Packages"
|
||||||
definedAliases = [ "@ddg" ];
|
"Nix Options"
|
||||||
|
"Github"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
containers = {
|
||||||
|
personal = {
|
||||||
|
color = "purple";
|
||||||
|
icon = "fingerprint";
|
||||||
|
id = 1;
|
||||||
};
|
};
|
||||||
"Googlee" = {
|
student = {
|
||||||
urls = [{
|
color = "turquoise";
|
||||||
template = "https://google.com/search";
|
icon = "circle";
|
||||||
params = [
|
id = 2;
|
||||||
{ name = "q"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@g" ];
|
|
||||||
};
|
};
|
||||||
"Wikipedia" = {
|
work = {
|
||||||
urls = [{
|
color = "yellow";
|
||||||
template = "https://en.wikipedia.org/wiki/Special:Search";
|
icon = "briefcase";
|
||||||
params = [
|
id = 3;
|
||||||
{ name = "search"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@wiki" ];
|
|
||||||
};
|
};
|
||||||
"YouTube" = {
|
shopping = {
|
||||||
urls = [{
|
color = "green";
|
||||||
template = "https://youtube.com/results";
|
icon = "cart";
|
||||||
params = [
|
id = 4;
|
||||||
{ name = "search_query"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@yt" ];
|
|
||||||
};
|
|
||||||
"Nix Packages" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://search.nixos.org/packages";
|
|
||||||
params = [
|
|
||||||
{ name = "channel"; value = "unstable"; }
|
|
||||||
{ name = "type"; value = "packages"; }
|
|
||||||
{ name = "query"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@np" ];
|
|
||||||
};
|
|
||||||
"Nix Options" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://search.nixos.org/options";
|
|
||||||
params = [
|
|
||||||
{ name = "channel"; value = "unstable"; }
|
|
||||||
{ name = "type"; value = "packages"; }
|
|
||||||
{ name = "query"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@no" ];
|
|
||||||
};
|
|
||||||
"Arch Wiki" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://wiki.archlinux.org/index.php";
|
|
||||||
params = [
|
|
||||||
{ name = "search"; value = "{searchTerms}"; }
|
|
||||||
{ name = "fulltext"; value = "1"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@aw" ];
|
|
||||||
};
|
|
||||||
"Github" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://github.com/search";
|
|
||||||
params = [
|
|
||||||
{ name = "q"; value = "{searchTerms}"; }
|
|
||||||
{ name = "type"; value = "repositories"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
definedAliases = [ "@gh" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
search.force = true;
|
|
||||||
search.order = [
|
|
||||||
"Startpage"
|
|
||||||
"DuckDuckGoo"
|
|
||||||
"Googlee"
|
|
||||||
"Wikipedia"
|
|
||||||
"YouTube"
|
|
||||||
"Nix Packages"
|
|
||||||
"Nix Options"
|
|
||||||
"Github"
|
|
||||||
];
|
|
||||||
|
|
||||||
bookmarks = { };
|
bookmarks = { };
|
||||||
|
|
||||||
|
@ -125,7 +140,6 @@ in mkIf conf.apps.enable {
|
||||||
"browser.startup.page" = 3;
|
"browser.startup.page" = 3;
|
||||||
"extensions.pocket.enabled" = false;
|
"extensions.pocket.enabled" = false;
|
||||||
"identity.fxaccounts.enabled" = false;
|
"identity.fxaccounts.enabled" = false;
|
||||||
"browser.tabs.closeWindowWithLastTab" = false;
|
|
||||||
"browser.bookmarks.addedImportButton" = false;
|
"browser.bookmarks.addedImportButton" = false;
|
||||||
"dom.security.https_only_mode" = true;
|
"dom.security.https_only_mode" = true;
|
||||||
"browser.newtabpage.enabled" = false;
|
"browser.newtabpage.enabled" = false;
|
||||||
|
@ -137,6 +151,8 @@ in mkIf conf.apps.enable {
|
||||||
"browser.translation.enable" = false;
|
"browser.translation.enable" = false;
|
||||||
"media.cache_readhead_limit" = 9999;
|
"media.cache_readhead_limit" = 9999;
|
||||||
"media.cache_resume_threshold" = 9999;
|
"media.cache_resume_threshold" = 9999;
|
||||||
|
"privacy.userContext.newTabContainerOnLeftClick.enabled" = true;
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
@ -147,6 +163,7 @@ in mkIf conf.apps.enable {
|
||||||
youtube-nonstop
|
youtube-nonstop
|
||||||
enhancer-for-youtube
|
enhancer-for-youtube
|
||||||
firefox-color
|
firefox-color
|
||||||
|
multi-account-containers
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,5 +34,10 @@
|
||||||
formatter = { command = "clang-format"; args = [ "-style=file" ]; };
|
formatter = { command = "clang-format"; args = [ "-style=file" ]; };
|
||||||
indent = { tab-width = 8; unit = " "; };
|
indent = { tab-width = 8; unit = " "; };
|
||||||
file-types = [ "cpp" "hpp" ];
|
file-types = [ "cpp" "hpp" ];
|
||||||
|
} {
|
||||||
|
name = "typst";
|
||||||
|
auto-format = true;
|
||||||
|
formatter = { command = "typstfmt"; };
|
||||||
|
file-types = [ "typ" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue