- Dodano domyślny format JSON w pliku `.vscode/settings.json` dla `vscode.json-language-features`. - Dodano rozszerzenie `prettify-json` do konfiguracji Codium. - Wprowadzono zmianę `extensions.autoDisableScopes = 0` w ustawieniach Librewolf. - Przebudowano strukturę konfiguracji rozszerzeń w `programs.librewolf.nix`, dodając sekcję `packages`.
177 lines
5.6 KiB
Nix
177 lines
5.6 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
system,
|
|
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";
|
|
"intl.locale.requested" = "pl,en-US";
|
|
"intl.accept_languages" = "pl,en-US";
|
|
|
|
"extensions.autoDisableScopes" = 0;
|
|
|
|
"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";
|
|
|
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
|
"layout.css.font-visibility" = 1;
|
|
|
|
"browser.tabs.insertRelatedAfterCurrent" = false;
|
|
"browser.sessionstore.resume_from_crash" = true;
|
|
"browser.sessionstore.resume_session_once" = true;
|
|
|
|
"browser.eme.ui.enabled" = true;
|
|
"media.eme.enabled" = true;
|
|
|
|
"privacy.donottrackheader.enabled" = true;
|
|
"privacy.clearOnShutdown.history" = true;
|
|
|
|
"network.trr.mode" = 3;
|
|
"network.trr.uri" = "https://dns.mullvad.net/dns-query";
|
|
};
|
|
search = {
|
|
default = "Garand's Search";
|
|
privateDefault = "Garand's Search";
|
|
force = true;
|
|
engines = {
|
|
"Garand's Search" = {
|
|
definedAliases = ["@g"];
|
|
urls = [{template = "https://search.garandplg.com/search?q={searchTerms}";}];
|
|
};
|
|
"YouTube" = {
|
|
definedAliases = ["@yt"];
|
|
urls = [
|
|
{
|
|
template = "https://www.youtube.com/results";
|
|
params = [
|
|
{
|
|
name = "search_query";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"Wikipedia (pl)" = {
|
|
definedAliases = ["@w"];
|
|
urls = [
|
|
{
|
|
template = "https://pl.wikipedia.org/w/index.php";
|
|
params = [
|
|
{
|
|
name = "search";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"StackOverflow" = {
|
|
definedAliases = ["@so"];
|
|
urls = [
|
|
{
|
|
template = "https://stackoverflow.com/search";
|
|
params = [
|
|
{
|
|
name = "q";
|
|
value = "{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}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"Nix Wiki" = {
|
|
definedAliases = ["@nw"];
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
urls = [
|
|
{
|
|
template = "https://wiki.nixos.org/w/index.php";
|
|
params = [
|
|
{
|
|
name = "search";
|
|
value = "{searchTerms}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
"Google".metaData.hidden = true;
|
|
"Bing".metaData.hidden = true;
|
|
"Wikipedia (en)".metaData.hidden = true;
|
|
};
|
|
};
|
|
extensions = {
|
|
# about:debugging#/runtime/this-firefox Przydatne do wyszukiwania ID rozszerzenia
|
|
# force = true;
|
|
packages = with inputs.firefox-addons.packages.${system}; [
|
|
bitwarden
|
|
ublock-origin
|
|
sponsorblock
|
|
darkreader
|
|
# flagfox
|
|
hoppscotch
|
|
mtab
|
|
return-youtube-dislikes
|
|
sponsorblock
|
|
pwas-for-firefox
|
|
];
|
|
};
|
|
};
|
|
};
|
|
settings = {
|
|
# LibreWolf settings
|
|
"network.http.referer.XOriginPolicy" = 2;
|
|
"privacy.resistFingerprinting.letterboxing" = true;
|
|
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
|
};
|
|
policies = {
|
|
# Policies (about:policies#documentation)
|
|
};
|
|
};
|
|
};
|
|
}
|