Configure firefox browser as default web browser
This commit is contained in:
57
desktop-environment/browser.nix
Normal file
57
desktop-environment/browser.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# New system packages
|
||||
];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
policies = {
|
||||
AppAutoUpdate = false;
|
||||
AllowFileSelectionDialogs = true;
|
||||
AutofillAddressEnabled = true;
|
||||
AutofillCreditCardEnabled = false;
|
||||
CaptivePortal = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableSecurityBypass = {
|
||||
InvalidCertificate = false;
|
||||
SafeBrowsing = false;
|
||||
};
|
||||
DisableSetDesktopBackground = true;
|
||||
DisableTelemetry = true;
|
||||
ExtensionUpdate = true;
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = true;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = true;
|
||||
Pocket = false;
|
||||
Stories = false;
|
||||
SponsoredPocket = false;
|
||||
SponsoredStories = false;
|
||||
Snippets = true;
|
||||
Locked = true;
|
||||
};
|
||||
PictureInPicture = {
|
||||
Enabled = true;
|
||||
Locked = false;
|
||||
};
|
||||
ExtensionSettings = {
|
||||
"nextcloud-passwords@nextcloud.com" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/nextcloud-passwords/latest.xpi";
|
||||
};
|
||||
|
||||
"instapaper@instapaper.com" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/instapaper-official/latest.xpi";
|
||||
};
|
||||
|
||||
"weh@mozilla.org" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/video-downloadhelper/latest.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user