Re-enable firefox as default browser

Keep chromium installed for PWA support
This commit is contained in:
Evie Litherland-Smith 2023-11-24 08:44:12 +00:00
parent 8a3e7c7ced
commit 6e03df701f
7 changed files with 19 additions and 43 deletions

View file

@ -29,6 +29,7 @@
./home/alacritty.nix
./home/btop.nix
./home/default.nix
./home/firefox.nix
./home/media.nix
./home/pass.nix
];

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
programs.firefox = {
enable = true;
package = null; # Use system Firefox
@ -7,7 +7,7 @@
"app.shield.optoutstudies.enabled" = false;
"browser.bookmarks.addedImportButton" = false;
"browser.bookmarks.showMobileBookmarks" = false;
"browser.toolbars.bookmarks.visibility" = "always";
"browser.toolbars.bookmarks.visibility" = "newtab";
"browser.contentblocking.category" = "strict";
"browser.search.region" = "GB";
"browser.search.isUS" = false;

View file

@ -179,7 +179,7 @@ in ''
bind = SUPER, W, moveworkspacetomonitor, name:web current
bind = SUPER, W, workspace, name:web
bind = SUPER SHIFT, W, movetoworkspace, name:web
windowrule = workspace name:web, (chromium-browser)
bind = SUPER ALT, W, exec, [workspace name:web] firefox
bind = SUPER, T, moveworkspacetomonitor, name:top current
bind = SUPER, T, workspace, name:top

View file

@ -37,7 +37,7 @@
"5" = "󰫇";
"6" = "󰫈";
"emacs" = "";
"web" = "";
"web" = "󰈹";
"discord" = "󰙯";
"steam" = "󰓓";
"apps" = "󰜫";

View file

@ -1,7 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ chromium ];
programs.chromium = rec {
enable = true;
defaultSearchProviderEnabled = true;
@ -9,12 +8,10 @@
defaultSearchProviderSuggestURL = defaultSearchProviderSearchURL;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
"dphilobhebphkdjbpfohgikllaljmgbn" # SimpleLogin
"fnaicdffflnofjppbagibeoednhnbjhg" # floccus bookmarks sync
];
extraOpts = {
"BrowserSignin" = 0;
"DefaultBrowserSettingEnabled" = true;
"DefaultBrowserSettingEnabled" = false;
"DeviceAutoUpdateDisabled" = true;
"SyncDisabled" = true;
"PasswordManagerEnabled" = false;

View file

@ -1,7 +1,7 @@
{ config, pkgs, user, ... }:
{
imports = [ ./default.nix ./chromium.nix ];
imports = [ ./default.nix ./firefox.nix ./chromium.nix ];
environment.systemPackages = with pkgs; [
dex
mesa

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
programs.firefox = {
@ -14,7 +14,7 @@
DisableSetDesktopBackground = true;
DisableSystemAddonUpdate = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "always";
DisplayBookmarksToolbar = "newtab";
DisplayMenuBar = "default-off";
EnableTrackingProtection = {
Value = true;
@ -53,10 +53,17 @@
"https://addons.mozilla.org/firefox/downloads/latest/i-dont-care-about-cookies/latest.xpi";
};
"floccus@handmadeideas.org" = {
installation_mode = "normal_installed";
# floccus bookmarks sync
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/floccus/latest.xpi";
};
"addon@simplelogin" = {
# SimpleLogin
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
};
};
FirefoxHome = {
Search = true;
@ -68,29 +75,8 @@
Snippets = false;
Locked = true;
};
HomePage = {
URL = "https://nixos.org";
StartPage = "homepage-locked";
};
ManagedBookmarks = [
{ toplevel_name = "Managed Bookmarks"; }
{
name = "Pinned Tabs";
children = [
{
name = "ntfy.sh";
url = "https://ntfy.xenia.me.uk/";
}
{
name = "WhatsApp Web";
url = "https://web.whatsapp.com/";
}
{
name = "Discord";
url = "https://discord.com/app";
}
];
}
{
name = "Server";
children = [
@ -112,19 +98,11 @@
}
{
name = "Grafana Dashboard";
url = "https://status.xenia.me.uk";
}
{
name = "Traefik";
url = "https://traefik.xenia.me.uk";
url = "https://grafana.xenia.me.uk";
}
{
name = "ntfy.sh topics";
children = [
{
name = "Emacs";
url = "https://ntfy.xenia.me.uk/UhrNGphnSKCpCnk8";
}
{
name = "JET Pulse Notifications";
url = "https://ntfy.xenia.me.uk/jet_pulse_notifications";
@ -191,7 +169,7 @@
PopupBlocking = { Default = true; };
RequestedLocales = [ "en-GB" ];
SearchEngines = { Default = "DuckDuckGo"; };
ShowHomeButton = true;
ShowHomeButton = false;
StartDownloadsInTempDirectory = true;
};
};