This commit is contained in:
Lilith 2025-03-28 04:06:00 +01:00
parent d6313c6cb1
commit f3721e14bb
Signed by: lilith
GPG key ID: 8712A0F317C37175
7 changed files with 143 additions and 74 deletions

View file

@ -11,7 +11,7 @@
./env.nix
#zen-browser (WIP)
# ./firefox
./firefox
./alacritty.nix
./clipman.nix

View file

@ -1,4 +1,5 @@
{ pkgs, ...}: {
{ pkgs, ... }:
{
programs.firefox = {
enable = true;
@ -12,29 +13,29 @@
URL = "https://duckduckgo.com";
StartPage = "homepage";
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
DisableFormHistory = true;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
DisableSetDesktopBackground = true;
DisableTelemetry = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "https://duckduckgo.com";
OverridePostUpdatePage = "https://duckduckgo.com";
NewTabPage = false;
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never";
SearchBar = "unified";
SearchSuggestEnabled = false;
DownloadDirectory = "/home/lilith/sync/inbox";
Containers = {
"Default" = [
{
@ -47,7 +48,7 @@
icon = "briefcase";
color = "green";
}
];
];
};
ExtensionSettings = {

View file

@ -1,74 +1,48 @@
{zen-browser, system, pkgs, lib, ...}: {
{
zen-browser,
pkgs,
lib,
...
}:
{
imports = [ zen-browser.homeManagerModules.zen-browser ];
home.file.".mozilla/native-messaging-hosts".source = lib.mkForce "/home/lilith/.mozilla/native-messaging-hosts";
home.file.".mozilla/native-messaging-hosts".source =
lib.mkForce /home/lilith/.mozilla/native-messaging-hosts;
programs.zen-browser = {
enable = true;
nativeMessagingHosts = with pkgs; [
tridactyl-native
keepassxc
];
nativeMessagingHosts = lib.mkForce (
with pkgs;
[
tridactyl-native
keepassxc
]
);
policies = {
Homepage = {
URL = "https://duckduckgo.com";
StartPage = "homepage";
profiles.lilith = {
id = 0;
name = "Lilith";
isDefault = true;
search = {
force = true;
default = "DuckDuckGo";
privateDefault = "DuckDuckGo";
order = [ "DuckDuckGo" ];
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
DisableFormHistory = true;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
DisableSetDesktopBackground = true;
DisableTelemetry = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "https://duckduckgo.com";
OverridePostUpdatePage = "https://duckduckgo.com";
NewTabPage = false;
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never";
SearchBar = "unified";
SearchSuggestEnabled = false;
DownloadDirectory = "/home/lilith/sync/inbox";
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
keepassxc-browser
tridactyl
];
ExtensionSettings = {
# uBlock Origin:
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
"keepassxc-browser@keepassxc.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi";
installation_mode = "force_installed";
};
"sponsorBlocker@ajay.app" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4292214/sponsorblock-5.6.xpi";
installation_mode = "force_installed";
};
"tridactyl.vim@cmcaine.co.uk" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4261352/tridactyl_vim-1.24.1.xpi";
installation_mode = "force_installed";
};
};
SearchEngines = {
Default = "DuckDuckGo";
};
Preferences = {
"browser.newtab.extensionControlled" = false;
"browser.translations.neverTranslateLanguages" = true;
settings = {
"zen.experimental-no-window-controls" = true;
"zen.sidebar.data" = "";
"browser.translations.automaticallyPopup" = false;
};
};
};