mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 22:49:41 +00:00
tree-wide: remove zen-browser
npins: remove zen-browser The fucked up https://github.com/zen-browser/desktop/discussions/12025
This commit is contained in:
parent
1047642bdf
commit
76b34bb277
5 changed files with 1 additions and 253 deletions
|
|
@ -150,7 +150,6 @@ in
|
||||||
./vanadium/home/misc.nix
|
./vanadium/home/misc.nix
|
||||||
./vanadium/home/gtk.nix
|
./vanadium/home/gtk.nix
|
||||||
|
|
||||||
./vanadium/home/zen-browser.nix
|
|
||||||
./vanadium/home/firefox.nix
|
./vanadium/home/firefox.nix
|
||||||
./vanadium/home/xmobar.nix
|
./vanadium/home/xmobar.nix
|
||||||
|
|
||||||
|
|
@ -169,7 +168,6 @@ in
|
||||||
../homeModules/common/atuin.nix
|
../homeModules/common/atuin.nix
|
||||||
../homeModules/common/direnv.nix
|
../homeModules/common/direnv.nix
|
||||||
../homeModules/common/feh.nix
|
../homeModules/common/feh.nix
|
||||||
../homeModules/common/zen-browser.nix
|
|
||||||
../homeModules/common/firefox.nix
|
../homeModules/common/firefox.nix
|
||||||
../homeModules/common/fzf.nix
|
../homeModules/common/fzf.nix
|
||||||
../homeModules/common/git.nix
|
../homeModules/common/git.nix
|
||||||
|
|
@ -191,9 +189,6 @@ in
|
||||||
#
|
#
|
||||||
(sources.agenix + "/modules/age-home.nix")
|
(sources.agenix + "/modules/age-home.nix")
|
||||||
sources.wired-notify.asFlake.homeManagerModules.default
|
sources.wired-notify.asFlake.homeManagerModules.default
|
||||||
|
|
||||||
# non official one uses reuploaded artifacts, are they audited?
|
|
||||||
sources.zen-browser.asFlake.homeModules.beta
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (pkgs) nur;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.zen-browser = {
|
|
||||||
enable = false;
|
|
||||||
|
|
||||||
policies.SearchEngines.Add = [
|
|
||||||
# Forges
|
|
||||||
{
|
|
||||||
Name = "GitHub";
|
|
||||||
Alias = "@gh";
|
|
||||||
IconURL = "https://github.com/favicon.ico";
|
|
||||||
Description = "Your code yum yum";
|
|
||||||
URLTemplate = "https://github.com/search?q={searchTerms}&type=repositories";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "GitHub (Code Search)";
|
|
||||||
Alias = "@ghc";
|
|
||||||
IconURL = "https://github.com/favicon.ico";
|
|
||||||
Description = "Your code yum yum";
|
|
||||||
URLTemplate = "https://github.com/search?q={searchTerms}&type=code";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "Codeberg";
|
|
||||||
Alias = "@cb";
|
|
||||||
IconURL = "https://codeberg.org/favicon.ico";
|
|
||||||
Description = "Software development, but free!";
|
|
||||||
URLTemplate = "https://codeberg.org/explore/repos?q={searchTerms}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "?C";
|
|
||||||
Alias = "@cc";
|
|
||||||
IconURL = "https://git.confusedcompiler.org/favicon.ico";
|
|
||||||
URLTemplate = "https://git.confusedcompiler.org/explore/repos?q={searchTerms}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Nix{,OS,pkgs}
|
|
||||||
{
|
|
||||||
Name = "NixOS Search (Package)";
|
|
||||||
Alias = "@np";
|
|
||||||
IconURL = "https://nixos.org/favicon.ico";
|
|
||||||
Description = "Search in nixpkgs";
|
|
||||||
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "NixOS Search (Options)";
|
|
||||||
Alias = "@no";
|
|
||||||
IconURL = "https://nixos.org/favicon.ico";
|
|
||||||
Description = "Search in NixOS options";
|
|
||||||
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Haskell
|
|
||||||
{
|
|
||||||
Name = "Flora";
|
|
||||||
Alias = "@hs";
|
|
||||||
IconURL = "https://flora.pm/static/icons/favicon-32x32.png";
|
|
||||||
URLTemplate = "https://flora.pm/search?q={searchTerms}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Discourse
|
|
||||||
{
|
|
||||||
Name = "NixOS Discourse";
|
|
||||||
Alias = "@nd";
|
|
||||||
IconURL = "https://nixos.org/favicon.ico";
|
|
||||||
URLTemplate = "https://discourse.nixos.org/search?q={searchTerms}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "Framework Discourse";
|
|
||||||
Alias = "@fd";
|
|
||||||
IconURL = "https://frame.work/favicon.ico";
|
|
||||||
URLTemplate = "https://community.frame.work/search?q={searchTerms}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
{
|
|
||||||
Name = "YouTube";
|
|
||||||
Alias = "@yt";
|
|
||||||
IconURL = "https://youtube.com/favicon.ico";
|
|
||||||
SuggestURLTemplate = "http://suggestqueries.google.com/complete/search?q={searchTerms}&ds=yt";
|
|
||||||
URLTemplate = "https://www.youtube.com/results?search_query={searchTerms}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Name = "Genius";
|
|
||||||
Alias = "@geni";
|
|
||||||
IconURL = "https://genius.com/favicon.ico";
|
|
||||||
URLTemplate = "https://genius.com/search?q={searchTerms}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
profiles = {
|
|
||||||
default = {
|
|
||||||
settings = {
|
|
||||||
# "full-screen-api.ignore-widgets" = true; # limit fullscreen mode to window
|
|
||||||
};
|
|
||||||
userChrome = ''
|
|
||||||
/* monofont tweak */
|
|
||||||
#statuspanel-label {
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
.urlbar-input-box {
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
extensions.packages =
|
|
||||||
let
|
|
||||||
addons = nur.repos.rycee.firefox-addons;
|
|
||||||
in
|
|
||||||
[
|
|
||||||
addons.sponsorblock
|
|
||||||
addons.return-youtube-dislikes
|
|
||||||
addons.shinigami-eyes
|
|
||||||
addons.consent-o-matic
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
junk = {
|
|
||||||
id = 1;
|
|
||||||
inherit (config.programs.zen-browser.profiles.default)
|
|
||||||
settings
|
|
||||||
userChrome
|
|
||||||
;
|
|
||||||
|
|
||||||
extensions.packages =
|
|
||||||
let
|
|
||||||
addons = nur.repos.rycee.firefox-addons;
|
|
||||||
in
|
|
||||||
[ addons.multi-account-containers ];
|
|
||||||
|
|
||||||
containers = {
|
|
||||||
raisin = {
|
|
||||||
color = "purple";
|
|
||||||
icon = "fruit";
|
|
||||||
id = 1;
|
|
||||||
};
|
|
||||||
pomme = {
|
|
||||||
color = "red";
|
|
||||||
icon = "fruit";
|
|
||||||
id = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Isolate it because it's proprietary
|
|
||||||
tampermonkey = {
|
|
||||||
id = 2;
|
|
||||||
inherit (config.programs.zen-browser.profiles.default)
|
|
||||||
settings
|
|
||||||
userChrome
|
|
||||||
;
|
|
||||||
|
|
||||||
extensions.packages =
|
|
||||||
let
|
|
||||||
addons = nur.repos.rycee.firefox-addons;
|
|
||||||
in
|
|
||||||
[ addons.tampermonkey ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -141,7 +141,7 @@ in
|
||||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mkIf (cfg.enable && !config.programs.zen-browser.enable) {
|
lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
associations.added = associations;
|
associations.added = associations;
|
||||||
defaultApplications = associations;
|
defaultApplications = associations;
|
||||||
|
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
cfg = config.programs.zen-browser;
|
|
||||||
|
|
||||||
firefoxCfg = config.programs.firefox;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.zen-browser = {
|
|
||||||
policies = firefoxCfg.policies;
|
|
||||||
|
|
||||||
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
|
||||||
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
|
||||||
#
|
|
||||||
# To check which option is mapped to which about:config
|
|
||||||
# - back preference file
|
|
||||||
# cp .zen/default/prefs.js{,.bk}
|
|
||||||
# - click the buttons
|
|
||||||
# - diff it
|
|
||||||
# diff .zen/default/prefs.js{.bk,}
|
|
||||||
profiles.default = lib.mkMerge [
|
|
||||||
firefoxCfg.profiles.default
|
|
||||||
{
|
|
||||||
# Zen specific
|
|
||||||
settings = {
|
|
||||||
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
|
||||||
"zen.tabs.show-newtab-vertical" = false;
|
|
||||||
"zen.view.compact.toolbar-flash-popup" = true;
|
|
||||||
"zen.view.show-newtab-button-top" = false;
|
|
||||||
"zen.view.use-single-toolbar" = false;
|
|
||||||
"zen.tabs.ctrl-tab.ignore-pending-tabs" = true; # ctrl-tab ignore unloaded tabs
|
|
||||||
|
|
||||||
# https://github.com/zen-browser/desktop/discussions/12025
|
|
||||||
# This makes tabs sync across windows, which as annoying af
|
|
||||||
"zen.window-sync.enabled" = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.mimeApps =
|
|
||||||
let
|
|
||||||
associations = lib.genAttrs [
|
|
||||||
"application/x-extension-shtml"
|
|
||||||
"application/x-extension-xhtml"
|
|
||||||
"application/x-extension-html"
|
|
||||||
"application/x-extension-xht"
|
|
||||||
"application/x-extension-htm"
|
|
||||||
# "x-scheme-handler/unknown"
|
|
||||||
# "x-scheme-handler/mailto"
|
|
||||||
"x-scheme-handler/chrome"
|
|
||||||
"x-scheme-handler/about"
|
|
||||||
"x-scheme-handler/https"
|
|
||||||
"x-scheme-handler/http"
|
|
||||||
"application/xhtml+xml"
|
|
||||||
# "application/json"
|
|
||||||
# "text/plain"
|
|
||||||
"text/html"
|
|
||||||
] (_: cfg.package.meta.desktopFileName);
|
|
||||||
in
|
|
||||||
lib.mkIf cfg.enable {
|
|
||||||
associations.added = associations;
|
|
||||||
defaultApplications = associations;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -368,19 +368,6 @@
|
||||||
"revision": "491197a6a5ef9c65a85c3eb1531786f32ffff5b3",
|
"revision": "491197a6a5ef9c65a85c3eb1531786f32ffff5b3",
|
||||||
"url": "https://github.com/Toqozz/wired-notify/archive/491197a6a5ef9c65a85c3eb1531786f32ffff5b3.tar.gz",
|
"url": "https://github.com/Toqozz/wired-notify/archive/491197a6a5ef9c65a85c3eb1531786f32ffff5b3.tar.gz",
|
||||||
"hash": "sha256-wxkeSF0/3FI0HSBKhZ2mlAAmFviNrZzdhjHqTfWP6h0="
|
"hash": "sha256-wxkeSF0/3FI0HSBKhZ2mlAAmFviNrZzdhjHqTfWP6h0="
|
||||||
},
|
|
||||||
"zen-browser": {
|
|
||||||
"type": "Git",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "0xc000022070",
|
|
||||||
"repo": "zen-browser-flake"
|
|
||||||
},
|
|
||||||
"branch": "main",
|
|
||||||
"submodules": false,
|
|
||||||
"revision": "0fac05e4b604c3304e7710a95572e78350fe9968",
|
|
||||||
"url": "https://github.com/0xc000022070/zen-browser-flake/archive/0fac05e4b604c3304e7710a95572e78350fe9968.tar.gz",
|
|
||||||
"hash": "sha256-jejW3u1bkqz0ObXZeiZqLQNwC7+MXb8/KMwf3VPQpRI="
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 7
|
"version": 7
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue