87 lines
2.9 KiB
Nix
87 lines
2.9 KiB
Nix
{
|
|
pkgs,
|
|
host,
|
|
...
|
|
}: {
|
|
programs = {
|
|
librewolf = {
|
|
enable = true;
|
|
languagePacks = ["pl" "en-US"];
|
|
profiles = {
|
|
"${host}" = {
|
|
id = 0;
|
|
isDefault = true;
|
|
name = "${host}";
|
|
settings = {
|
|
# Preferences (about:config)
|
|
"general.useragent.locale" = "pl";
|
|
"browser.sessionstore.resume_from_crash" = true;
|
|
"browser.tabs.insertRelatedAfterCurrent" = false;
|
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
|
"layout.css.font-visibility" = 1;
|
|
"font.default.x-western" = "FiraCode Nerd Font";
|
|
"font.name.monospace.x-western" = "FiraCode Nerd Font Mono";
|
|
"font.name.sans-serif.x-western" = "FiraCode Nerd Font Propo";
|
|
"font.name.serif.x-western" = "FiraCode Nerd Font";
|
|
"intl.locale.requested" = "pl,en-US";
|
|
"intl.accept_languages" = "pl,en-US";
|
|
};
|
|
search = {
|
|
default = "Garand's Search";
|
|
privateDefault = "Garand's Search";
|
|
force = true;
|
|
engines = {
|
|
"Garand's Search" = {
|
|
definedAliases = ["@garand"];
|
|
urls = [{template = "https://search.garandplg.com/search?q={searchTerms}";}];
|
|
};
|
|
"Nix Packages" = {
|
|
definedAliases = ["@np"];
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/packages?channel=unstable";
|
|
params = [
|
|
{
|
|
name = "query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"Nix Options" = {
|
|
definedAliases = ["@no"];
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
urls = [
|
|
{
|
|
template = "https://search.nixos.org/options";
|
|
params = [
|
|
{
|
|
name = "query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"Google".metaData.hidden = true;
|
|
"Bing".metaData.hidden = true;
|
|
"Wikipedia (en)".metaData.hidden = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
settings = {
|
|
# LibreWolf settings
|
|
"network.http.referer.XOriginPolicy" = 2;
|
|
"privacy.resistFingerprinting.letterboxing" = true;
|
|
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
|
};
|
|
policies = {
|
|
# Policies (about:policies#documentation)
|
|
};
|
|
};
|
|
};
|
|
}
|