Re-enable firefox as default browser
Keep chromium installed for PWA support
This commit is contained in:
parent
8a3e7c7ced
commit
6e03df701f
|
@ -29,6 +29,7 @@
|
|||
./home/alacritty.nix
|
||||
./home/btop.nix
|
||||
./home/default.nix
|
||||
./home/firefox.nix
|
||||
./home/media.nix
|
||||
./home/pass.nix
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
"5" = "";
|
||||
"6" = "";
|
||||
"emacs" = "";
|
||||
"web" = "";
|
||||
"web" = "";
|
||||
"discord" = "";
|
||||
"steam" = "";
|
||||
"apps" = "";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue