.
This commit is contained in:
@@ -0,0 +1,124 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
languagePacks = [ "pt-BR" ];
|
||||||
|
|
||||||
|
policies = {
|
||||||
|
# Updates & Background Services
|
||||||
|
AppAutoUpdate = false;
|
||||||
|
BackgroundAppUpdate = false;
|
||||||
|
|
||||||
|
# Feature Disabling
|
||||||
|
DisableBuiltinPDFViewer = false;
|
||||||
|
DisableFirefoxStudies = true;
|
||||||
|
DisableFirefoxAccounts = false;
|
||||||
|
DisableFirefoxScreenshots = true;
|
||||||
|
DisableForgetButton = true;
|
||||||
|
DisableMasterPasswordCreation = true;
|
||||||
|
DisableProfileImport = true;
|
||||||
|
DisableProfileRefresh = true;
|
||||||
|
DisableSetDesktopBackground = true;
|
||||||
|
DisablePocket = true;
|
||||||
|
DisableTelemetry = true;
|
||||||
|
DisableFormHistory = true;
|
||||||
|
DisablePasswordReveal = true;
|
||||||
|
|
||||||
|
# Access Restrictions
|
||||||
|
BlockAboutConfig = false;
|
||||||
|
BlockAboutProfiles = true;
|
||||||
|
BlockAboutSupport = true;
|
||||||
|
|
||||||
|
# UI and Behavior
|
||||||
|
DisplayMenuBar = "never";
|
||||||
|
DontCheckDefaultBrowser = true;
|
||||||
|
HardwareAcceleration = false;
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
DefaultDownloadDirectory = "${home}/Downloads";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# Extensions
|
||||||
|
extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||||
|
ublock-origin
|
||||||
|
bitwarden
|
||||||
|
dark-reader
|
||||||
|
bing-automator
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
profiles.default = {
|
||||||
|
|
||||||
|
search = {
|
||||||
|
force = true;
|
||||||
|
default = "google";
|
||||||
|
privateDefault = "google";
|
||||||
|
|
||||||
|
engines = {
|
||||||
|
"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" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Nix 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" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
template = "https://wiki.nixos.org/w/index.php";
|
||||||
|
params = [
|
||||||
|
{
|
||||||
|
name = "search";
|
||||||
|
value = "{searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -68,4 +68,8 @@
|
|||||||
gnome-themes-extra
|
gnome-themes-extra
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./firefox.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user