Add temporary firefox policy fix
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -4,41 +4,71 @@
|
|||||||
}:
|
}:
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.persistence = {
|
environment = {
|
||||||
"/persist"."${home}/.mozilla" = { };
|
persistence = {
|
||||||
"/cache"."${home}/.cache/mozilla" = { };
|
"/persist"."${home}/.mozilla" = { };
|
||||||
|
"/cache"."${home}/.cache/mozilla" = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
# FIXME: https://github.com/nix-community/home-manager/issues/6444
|
||||||
|
etc."firefox/policies/policies.json".source = (pkgs.formats.json { }).generate "policies.json" {
|
||||||
|
policies = {
|
||||||
|
AppAutoUpdate = false;
|
||||||
|
AutofillAddressEnabled = false;
|
||||||
|
AutofillCreditCardEnabled = false;
|
||||||
|
DefaultDownloadDirectory = "$HOME/Downloads";
|
||||||
|
DisableFirefoxStudies = true;
|
||||||
|
DisablePocket = true;
|
||||||
|
DisableSetDesktopBackground = true;
|
||||||
|
DisableTelemetry = true;
|
||||||
|
DontCheckDefaultBrowser = true;
|
||||||
|
EnableTrackingProtection = {
|
||||||
|
Value = true;
|
||||||
|
Locked = true;
|
||||||
|
Cryptomining = true;
|
||||||
|
Fingerprinting = true;
|
||||||
|
EmailTracking = true;
|
||||||
|
};
|
||||||
|
FirefoxHome = {
|
||||||
|
"Locked" = true;
|
||||||
|
"Search" = true;
|
||||||
|
"TopSites" = true;
|
||||||
|
"SponsoredTopSites" = false;
|
||||||
|
"Highlights" = false;
|
||||||
|
"Pocket" = false;
|
||||||
|
"SponsoredPocket" = false;
|
||||||
|
"Snippets" = false;
|
||||||
|
};
|
||||||
|
NoDefaultBookmarks = true;
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
OverrideFirstRunPage = "";
|
||||||
|
PasswordManagerEnabled = false;
|
||||||
|
Preferences =
|
||||||
|
lib.attrsets.mapAttrs
|
||||||
|
(key: value: {
|
||||||
|
Value = value;
|
||||||
|
Status = "locked";
|
||||||
|
})
|
||||||
|
{
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"browser.bookmarks.addedImportButton" = true;
|
||||||
|
"browser.bookmarks.showMobileBookmarks" = true;
|
||||||
|
"browser.download.useDownloadDir" = false;
|
||||||
|
"browser.toolbars.bookmarks.visibility" = "always";
|
||||||
|
"browser.sessionstore.restore_on_demand" = true;
|
||||||
|
"browser.sessionstore.restore_pinned_tabs_on_demand" = false;
|
||||||
|
"browser.translations.automaticallyPopup" = false;
|
||||||
|
"extensions.autoDisableScopes" = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
policies = {
|
|
||||||
DisableTelemetry = true;
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
DontCheckDefaultBrowser = true;
|
|
||||||
DisablePocket = true;
|
|
||||||
DefaultDownloadDirectory = "$HOME/Downloads";
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
AutofillAddressEnabled = false;
|
|
||||||
AutofillCreditCardEnabled = false;
|
|
||||||
Preferences = {
|
|
||||||
"browser.aboutConfig.showWarning" = false;
|
|
||||||
"browser.contentblocking.category" = "strict";
|
|
||||||
"browser.download.useDownloadDir" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.toolbars.bookmarks.visibility" = true;
|
|
||||||
"browser.sessionstore.restore_on_demand" = true;
|
|
||||||
"browser.sessionstore.restore_pinned_tabs_on_demand" = false;
|
|
||||||
"browser.translations.automaticallyPopup" = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
settings."extensions.autoDisableScopes" = 0;
|
|
||||||
|
|
||||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
languagetool
|
languagetool
|
||||||
bitwarden
|
bitwarden
|
||||||
|
@@ -58,7 +58,6 @@ in
|
|||||||
(import ../../../common/configs/user/gui/discord { inherit user home; })
|
(import ../../../common/configs/user/gui/discord { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/emoji { inherit user home; })
|
(import ../../../common/configs/user/gui/emoji { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/firefox { inherit user home; })
|
(import ../../../common/configs/user/gui/firefox { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/gaming { inherit user home; })
|
|
||||||
(import ../../../common/configs/user/gui/gtk { inherit user home; })
|
(import ../../../common/configs/user/gui/gtk { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/hyprland { inherit user home; })
|
(import ../../../common/configs/user/gui/hyprland { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/hyprshot { inherit user home; })
|
(import ../../../common/configs/user/gui/hyprshot { inherit user home; })
|
||||||
@@ -72,6 +71,7 @@ in
|
|||||||
(import ../../../common/configs/user/gui/qt { inherit user home; })
|
(import ../../../common/configs/user/gui/qt { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/rofi { inherit user home; })
|
(import ../../../common/configs/user/gui/rofi { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/spicetify { inherit user home; })
|
(import ../../../common/configs/user/gui/spicetify { inherit user home; })
|
||||||
|
(import ../../../common/configs/user/gui/steam { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/swww { inherit user home; })
|
(import ../../../common/configs/user/gui/swww { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/theme { inherit user home; })
|
(import ../../../common/configs/user/gui/theme { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/transmission { inherit user home; })
|
(import ../../../common/configs/user/gui/transmission { inherit user home; })
|
||||||
|
Reference in New Issue
Block a user