Dodanie obsługi dodatków do Firefoksa

- Dodano nowy input `firefox-addons` w `flake.nix`
- Zaktualizowano `flake.lock` o nową zależność oraz nowsze wersje istniejących pakietów
- Zmieniono konfigurację `programs.librewolf.nix`:
  - Dodano obsługę systemu `x86_64-linux`
  - Zmieniono ustawienia prywatności i sesji przeglądarki
  - Dodano obsługę DNS-over-HTTPS z Mullvad
  - Rozszerzono listę wyszukiwarek o YouTube, Wikipedia (PL), StackOverflow i Nix Wiki
  - Dodano listę preinstalowanych rozszerzeń (np. Bitwarden, uBlock Origin, SponsorBlock)
- Dodano alias `os-up-fa` do aktualizacji `firefox-addons`
This commit is contained in:
installer
2025-02-17 23:23:53 +01:00
parent b1a56e9614
commit 3c99fff890
4 changed files with 151 additions and 22 deletions

View File

@@ -1,5 +1,7 @@
{
pkgs,
inputs,
system,
host,
...
}: {
@@ -15,16 +17,29 @@
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;
"intl.locale.requested" = "pl,en-US";
"intl.accept_languages" = "pl,en-US";
"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";
"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";
@@ -32,9 +47,51 @@
force = true;
engines = {
"Garand's Search" = {
definedAliases = ["@garand"];
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";
@@ -65,11 +122,38 @@
}
];
};
"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 = with inputs.firefox-addons.packages.${system}; [
bitwarden
ublock-origin
sponsorblock
darkreader
# flagfox
hoppscotch
mtab
return-youtube-dislikes
sponsorblock
pwas-for-firefox
];
};
};
settings = {

View File

@@ -72,6 +72,7 @@ in {
os-up-hm = "sudo nix flake update --update-input home-manager";
os-up-sx = "sudo nix flake update --update-input stylix";
os-up-af = "sudo nix flake update --update-input auto-cpufreq";
os-up-fa = "sudo nix flake update --update-input firefox-addons";
fr = "nh os switch --hostname ${host} /home/${username}/zaneyos";
fu = "nh os switch --hostname ${host} --update /home/${username}/zaneyos";
hypr-cli = "hyprctl clients";