rozbicie home.nix i prace nad librewolf w home-manager
This commit is contained in:
87
hosts/garand-laptop/home/programs.librewolf.nix
Normal file
87
hosts/garand-laptop/home/programs.librewolf.nix
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
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"];
|
||||
icon = "/home/${host}/.config/face.jpg";
|
||||
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)
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user