mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:03:55 -05:00
Aly Raffauf
7798d01cae
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* firefox: add gnome browser connector * lavaridge: remove commented gnome settings * nixos: add gnome module * nix fmt * vscode: use custom titlebar on gnome * theme: check for gnome before adding extraCss * firefox: browsers in titlebar when gnome is enabled * home: add gnome settings * desktop: set gtk window decorations * gnome: remove gsconnect * Merge branch 'master' into add-gnome
105 lines
2.6 KiB
Nix
105 lines
2.6 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.apps.firefox.enable {
|
|
programs.firefox = {
|
|
enable = true;
|
|
policies = {
|
|
Cookies.Behavior = "reject-foreign";
|
|
DisableAppUpdate = true;
|
|
DisableFirefoxStudies = true;
|
|
DisableMasterPasswordCreation = true;
|
|
DisablePocket = true;
|
|
DisableProfileImport = true;
|
|
DisableSetDesktopBackground = true;
|
|
DisableTelemetry = true;
|
|
DisplayBookmarksToolbar = "newtab";
|
|
|
|
DNSOverHTTPS = {
|
|
Enabled = true;
|
|
Fallback = true;
|
|
};
|
|
|
|
DontCheckDefaultBrowser = true;
|
|
|
|
EnableTrackingProtection = {
|
|
Cryptomining = true;
|
|
Fingerprinting = true;
|
|
EmailTracking = true;
|
|
Locked = false;
|
|
Value = true;
|
|
};
|
|
|
|
EncryptedMediaExtensions = {
|
|
Enabled = true;
|
|
Locked = false;
|
|
};
|
|
|
|
FirefoxHome = {
|
|
Highlights = false;
|
|
Locked = false;
|
|
Pocket = false;
|
|
Search = true;
|
|
Snippets = false;
|
|
SponsoredPocket = false;
|
|
SponsoredTopSites = false;
|
|
TopSites = false;
|
|
};
|
|
|
|
FirefoxSuggest = {
|
|
ImproveSuggest = false;
|
|
Locked = false;
|
|
SponsoredSuggestions = false;
|
|
WebSuggestions = false;
|
|
};
|
|
|
|
HardwareAcceleration = true;
|
|
|
|
Homepage = {
|
|
Locked = false;
|
|
StartPage = "previous-session";
|
|
};
|
|
|
|
NewTabPage = false;
|
|
NoDefaultBookmarks = false; # Enabling this prevents declaratively setting bookmarks.
|
|
OfferToSaveLoginsDefault = false;
|
|
OverrideFirstRunPage = "";
|
|
OverridePostUpdatePage = "";
|
|
|
|
PDFjs = {
|
|
Enabled = true;
|
|
EnablePermissions = false;
|
|
};
|
|
|
|
Preferences = {
|
|
"browser.aboutConfig.showWarning" = false;
|
|
"browser.bookmarks.addedImportButton" = false;
|
|
|
|
"browser.tabs.inTitlebar" =
|
|
if config.ar.desktop.gnome.enable
|
|
then 1
|
|
else 0;
|
|
|
|
"datareporting.policy.dataSubmissionPolicyAccepted" = true;
|
|
"dom.security.https_only_mode" = true;
|
|
"extensions.autoDisableScopes" = 0;
|
|
"media.ffmpeg.vaapi.enabled" = true;
|
|
"media.navigator.mediadatadecoder_vpx_enabled" = true;
|
|
"media.rdd-ffmpeg.enabled" = true;
|
|
};
|
|
|
|
UserMessaging = {
|
|
ExtensionRecommendations = false;
|
|
FeatureRecommendations = false;
|
|
MoreFromMozilla = false;
|
|
SkipOnboarding = true;
|
|
};
|
|
|
|
UseSystemPrintDialog = true;
|
|
};
|
|
};
|
|
};
|
|
}
|