configure firefox with home-manager
This commit is contained in:
parent
ec935d7ecc
commit
847aabd13f
2 changed files with 105 additions and 92 deletions
|
@ -2,106 +2,119 @@
|
||||||
programs = {
|
programs = {
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox.override {
|
policies = {
|
||||||
extraPolicies = {
|
DisableAppUpdate = true;
|
||||||
DisableAppUpdate = true;
|
DisableFirefoxAccounts = true;
|
||||||
DisableFirefoxAccounts = true;
|
DisableFirefoxStudies = true;
|
||||||
DisableFirefoxStudies = true;
|
DisableFormHistory = true;
|
||||||
DisableFormHistory = true;
|
DisablePocket = true;
|
||||||
DisablePocket = true;
|
DisableTelemetry = true;
|
||||||
DisableTelemetry = true;
|
DisplayBookmarksToolbar = "newtab";
|
||||||
DisplayBookmarksToolbar = "newtab";
|
DontCheckDefaultBrowser = true;
|
||||||
DontCheckDefaultBrowser = true;
|
EnableTrackingProtection = {
|
||||||
EnableTrackingProtection = {
|
Value = true;
|
||||||
Value = true;
|
Locked = true;
|
||||||
Locked = true;
|
Cryptomining = true;
|
||||||
Cryptomining = true;
|
EmailTracking = true;
|
||||||
EmailTracking = true;
|
Fingerprinting = true;
|
||||||
Fingerprinting = true;
|
};
|
||||||
|
ExtensionSettings = {
|
||||||
|
"{b743f56d-1cc1-4048-8ba6-f9c2ab7aa54d}" = {
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/dracula-dark-colorscheme/latest.xpi";
|
||||||
};
|
};
|
||||||
ExtensionSettings = {
|
"{d634138d-c276-4fc8-924b-40a0ea21d284}" = {
|
||||||
"{b743f56d-1cc1-4048-8ba6-f9c2ab7aa54d}" = {
|
installation_mode = "force_installed";
|
||||||
installation_mode = "force_installed";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi";
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/dracula-dark-colorscheme/latest.xpi";
|
|
||||||
};
|
|
||||||
"{d634138d-c276-4fc8-924b-40a0ea21d284}" = {
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi";
|
|
||||||
};
|
|
||||||
"uBlock0@raymondhill.net" = {
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
|
||||||
};
|
|
||||||
|
|
||||||
"google@search.mozilla.org" = {
|
|
||||||
installation_mode = "blocked";
|
|
||||||
};
|
|
||||||
"bing@search.mozilla.org" = {
|
|
||||||
installation_mode = "blocked";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
FirefoxHome = {
|
"uBlock0@raymondhill.net" = {
|
||||||
Search = true;
|
installation_mode = "force_installed";
|
||||||
TopSites = false;
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||||
SponsoredTopSites = false;
|
|
||||||
Highlights = false;
|
|
||||||
Pocket = false;
|
|
||||||
SponsoredPocket = false;
|
|
||||||
Snippets = false;
|
|
||||||
Locked = true;
|
|
||||||
};
|
|
||||||
FirefoxSuggest = {
|
|
||||||
WebSuggestions = false;
|
|
||||||
SponsoredSuggestions = false;
|
|
||||||
ImproveSuggest = false;
|
|
||||||
Locked = true;
|
|
||||||
};
|
|
||||||
Homepage = {
|
|
||||||
StartPage = "previous-session";
|
|
||||||
Locked = true;
|
|
||||||
};
|
|
||||||
NetworkPrediction = false;
|
|
||||||
NoDefaultBookmarks = true;
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
OverrideFirstRunPage = "";
|
|
||||||
OverridePostUpdatePage = "";
|
|
||||||
PasswordManagerEnabled = false;
|
|
||||||
PrimaryPassword = false;
|
|
||||||
SearchSuggestEnabled = false;
|
|
||||||
UserMessaging = {
|
|
||||||
WhatsNew = false;
|
|
||||||
ExtensionRecommendations = false;
|
|
||||||
FeatureRecommendations = false;
|
|
||||||
UrlbarInterventions = false;
|
|
||||||
SkipOnboarding = true;
|
|
||||||
MoreFromMozilla = false;
|
|
||||||
Locked = true;
|
|
||||||
};
|
|
||||||
Preferences = {
|
|
||||||
"accessibility.force_disabled" = { Value = 1; Status = "locked"; };
|
|
||||||
"browser.crashReports.unsubmittedCheck.autoSubmit2" = { Value = false; Status = "locked"; };
|
|
||||||
"browser.aboutConfig.showWarning" = { Value = false; Status = "locked"; };
|
|
||||||
"browser.aboutHomeSnippets.updateUrl" = { Value = ""; Status = "locked"; };
|
|
||||||
"browser.selfsupport.url" = { Value = ""; Status = "locked"; };
|
|
||||||
"browser.startup.homepage_override.mstone" = { Value = "ignore"; Status = "locked"; };
|
|
||||||
"browser.startup.homepage_override.buildID" = { Value = ""; Status = "locked"; };
|
|
||||||
"browser.tabs.firefox-view" = { Value = false; Status = "locked"; };
|
|
||||||
"browser.tabs.firefox-view-next" = { Value = false; Status = "locked"; };
|
|
||||||
"browser.urlbar.suggest.history" = { Value = false; Status = "locked"; };
|
|
||||||
"browser.urlbar.suggest.topsites" = { Value = false; Status = "locked"; };
|
|
||||||
"dom.security.https_only_mode" = { Value = true; Status = "locked"; };
|
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled" = { Value = false; Status = "locked"; };
|
|
||||||
"extensions.recommendations.themeRecommendationUrl" = { Value = ""; Status = "locked"; };
|
|
||||||
"network.IDN_show_punycode" = { Value = true; Status = "locked"; };
|
|
||||||
"network.trr.mode" = { Value = 5; Status = "locked"; };
|
|
||||||
"signon.management.page.breach-alerts.enabled" = { Value = false; Status = "locked"; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
FirefoxHome = {
|
||||||
|
Search = true;
|
||||||
|
TopSites = false;
|
||||||
|
SponsoredTopSites = false;
|
||||||
|
Highlights = false;
|
||||||
|
Pocket = false;
|
||||||
|
SponsoredPocket = false;
|
||||||
|
Snippets = false;
|
||||||
|
Locked = true;
|
||||||
|
};
|
||||||
|
FirefoxSuggest = {
|
||||||
|
WebSuggestions = false;
|
||||||
|
SponsoredSuggestions = false;
|
||||||
|
ImproveSuggest = false;
|
||||||
|
Locked = true;
|
||||||
|
};
|
||||||
|
Homepage = {
|
||||||
|
StartPage = "previous-session";
|
||||||
|
Locked = true;
|
||||||
|
};
|
||||||
|
NetworkPrediction = false;
|
||||||
|
NoDefaultBookmarks = true;
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
OverrideFirstRunPage = "";
|
||||||
|
OverridePostUpdatePage = "";
|
||||||
|
PasswordManagerEnabled = false;
|
||||||
|
PrimaryPassword = false;
|
||||||
|
SearchSuggestEnabled = false;
|
||||||
|
UserMessaging = {
|
||||||
|
WhatsNew = false;
|
||||||
|
ExtensionRecommendations = false;
|
||||||
|
FeatureRecommendations = false;
|
||||||
|
UrlbarInterventions = false;
|
||||||
|
SkipOnboarding = true;
|
||||||
|
MoreFromMozilla = false;
|
||||||
|
Locked = true;
|
||||||
|
};
|
||||||
|
Preferences = {
|
||||||
|
"accessibility.force_disabled" = { Value = 1; Status = "locked"; };
|
||||||
|
"browser.crashReports.unsubmittedCheck.autoSubmit2" = { Value = false; Status = "locked"; };
|
||||||
|
"browser.aboutConfig.showWarning" = { Value = false; Status = "locked"; };
|
||||||
|
"browser.aboutHomeSnippets.updateUrl" = { Value = ""; Status = "locked"; };
|
||||||
|
"browser.selfsupport.url" = { Value = ""; Status = "locked"; };
|
||||||
|
"browser.startup.homepage_override.mstone" = { Value = "ignore"; Status = "locked"; };
|
||||||
|
"browser.startup.homepage_override.buildID" = { Value = ""; Status = "locked"; };
|
||||||
|
"browser.tabs.firefox-view" = { Value = false; Status = "locked"; };
|
||||||
|
"browser.tabs.firefox-view-next" = { Value = false; Status = "locked"; };
|
||||||
|
"browser.urlbar.suggest.history" = { Value = false; Status = "locked"; };
|
||||||
|
"browser.urlbar.suggest.topsites" = { Value = false; Status = "locked"; };
|
||||||
|
"dom.security.https_only_mode" = { Value = true; Status = "locked"; };
|
||||||
|
"extensions.htmlaboutaddons.recommendations.enabled" = { Value = false; Status = "locked"; };
|
||||||
|
"extensions.recommendations.themeRecommendationUrl" = { Value = ""; Status = "locked"; };
|
||||||
|
"network.IDN_show_punycode" = { Value = true; Status = "locked"; };
|
||||||
|
"network.trr.mode" = { Value = 5; Status = "locked"; };
|
||||||
|
"signon.management.page.breach-alerts.enabled" = { Value = false; Status = "locked"; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
id = 0;
|
id = 0;
|
||||||
name = "Default";
|
name = "Default";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
search = {
|
||||||
|
default = "DuckDuckGo";
|
||||||
|
engines = {
|
||||||
|
"Bing".metaData.hidden = true;
|
||||||
|
"Google".metaData.hidden = true;
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
"app.shield.optoutstudies.enabled" = false;
|
"app.shield.optoutstudies.enabled" = false;
|
||||||
"privacy.donottrackheader.enabled" = true;
|
"privacy.donottrackheader.enabled" = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||||
firefox = "${config.programs.firefox.package}/bin/firefox";
|
firefox = "${config.programs.firefox.finalPackage}/bin/firefox";
|
||||||
grimblast = "${pkgs.grimblast}/bin/grimblast";
|
grimblast = "${pkgs.grimblast}/bin/grimblast";
|
||||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||||
kitty = "${config.programs.kitty.package}/bin/kitty";
|
kitty = "${config.programs.kitty.package}/bin/kitty";
|
||||||
|
|
Loading…
Reference in a new issue