add zen browser

This commit is contained in:
TheWanderingCrow 2026-04-14 09:59:03 -04:00
parent 2e6eba8853
commit aaacb23149
6 changed files with 100 additions and 9 deletions

View file

@ -1,5 +1,68 @@
{ pkgs, ... }:
{ inputs, pkgs, ... }:
let
mkPluginUrl = id: "https://addons.mozilla.org/firefox/downloads/latest/${id}/latest.xpi";
mkExtensionEntry =
{
id,
pinned ? false,
}:
let
base = {
install_url = mkPluginUrl id;
installation_mode = "force_installed";
};
in
if pinned then base // { default_area = "navbar"; } else base;
mkExtensionSettings = builtins.mapAttrs (
_: entry: if builtins.isAttrs entry then entry else mkExtensionEntry { id = entry; }
);
in
{
imports = [
inputs.zen-browser.homeModules.beta
];
# Personal Browser
programs.zen-browser = {
enable = true;
nativeMessagingHosts = [
pkgs.firefoxpwa
];
profiles.default = {
search = {
force = true;
default = "ddg";
};
};
policies = {
AutofillAddressEnabled = false;
AutofillCreditCardEnabled = false;
DisableAppUpdate = true;
DisableFeedbackCommands = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DontCheckDefaultBrowser = true;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
ExtensionSettings = mkExtensionSettings {
"uBlock0@raymondhill.net" = "ublock-origin";
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = "vimium";
"sponsorBlocker@ajay.app" = "sponsor-block";
};
};
};
# Work Browser
programs.firefox = {
enable = true;
policies = {
@ -24,12 +87,6 @@
PasswordManagerEnabled = false;
# You can find extension settings by installing the extension in firefox and then going to about:debugging#/runtime/this-firefox to get the extension ID
ExtensionSettings = {
# Bitwarden
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/{446900e4-71c2-419f-a6a7-df9c091e268b}/latest.xpl";
default_area = "navbar";
};
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/uBlock0@raymondhill.net/latest.xpl";

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{
services.swww = {
services.awww = {
enable = true;
package = pkgs.awww;
};