2024-06-12 19:25:47 +05:30
|
|
|
{ pkgs, ... }: {
|
|
|
|
programs = {
|
|
|
|
firefox = {
|
|
|
|
enable = true;
|
2024-12-05 22:48:15 +05:30
|
|
|
package = pkgs.firefox;
|
|
|
|
nativeMessagingHosts = with pkgs; [ _1password-gui bitwarden-desktop ];
|
|
|
|
policies = import ./policies.nix;
|
2024-06-12 19:25:47 +05:30
|
|
|
profiles.default = {
|
|
|
|
id = 0;
|
|
|
|
name = "Default";
|
|
|
|
isDefault = true;
|
2024-12-05 22:48:15 +05:30
|
|
|
extraConfig = builtins.readFile ./prefs.cfg;
|
2024-06-12 19:25:47 +05:30
|
|
|
search = {
|
|
|
|
default = "DuckDuckGo";
|
|
|
|
engines = {
|
|
|
|
"Bing".metaData.hidden = true;
|
|
|
|
"Google".metaData.hidden = true;
|
|
|
|
"Nix Packages" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://search.nixos.org/packages";
|
|
|
|
params = [
|
|
|
|
{ name = "channel"; value = "unstable"; }
|
|
|
|
{ name = "query"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
definedAliases = [ "@np" ];
|
|
|
|
};
|
|
|
|
"NixOS Options" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://search.nixos.org/options";
|
|
|
|
params = [
|
|
|
|
{ name = "channel"; value = "unstable"; }
|
|
|
|
{ name = "query"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
definedAliases = [ "@no" ];
|
|
|
|
};
|
|
|
|
"GitHub" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://github.com/search";
|
|
|
|
params = [
|
|
|
|
{ name = "q"; value = "{searchTerms}"; }
|
|
|
|
{ name = "type"; value = "repositories"; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
iconUpdateURL = "https://github.com/favicon.ico";
|
|
|
|
definedAliases = [ "@gh" ];
|
|
|
|
};
|
|
|
|
"Docker Hub" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://hub.docker.com/search";
|
|
|
|
params = [
|
|
|
|
{ name = "q"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
iconUpdateURL = "https://hub.docker.com/favicon.ico";
|
|
|
|
definedAliases = [ "@docker" ];
|
|
|
|
};
|
|
|
|
"YouTube" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://www.youtube.com/results";
|
|
|
|
params = [
|
|
|
|
{ name = "search_query"; value = "{searchTerms}"; }
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
iconUpdateURL = "https://www.youtube.com/favicon.ico";
|
|
|
|
definedAliases = [ "@yt" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
force = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|