|
|
@@ -1,181 +0,0 @@
|
|
|
-{ inputs
|
|
|
-, config
|
|
|
-, pkgs
|
|
|
-, ...
|
|
|
-}:
|
|
|
-
|
|
|
-{
|
|
|
- imports = [
|
|
|
- inputs.zen-browser.homeModules.beta
|
|
|
- ];
|
|
|
-
|
|
|
- programs.zen-browser.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;
|
|
|
- };
|
|
|
- };
|
|
|
-
|
|
|
- programs.zen-browser = {
|
|
|
- enable = true;
|
|
|
- profiles."default" = {
|
|
|
- extensions.packages =
|
|
|
- with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system};
|
|
|
- [
|
|
|
- vimium
|
|
|
- ublock-origin
|
|
|
- videospeed
|
|
|
- simplelogin
|
|
|
- alby
|
|
|
- darkreader
|
|
|
- bitwarden
|
|
|
- ];
|
|
|
-
|
|
|
- search = {
|
|
|
- enable = true;
|
|
|
- force = true;
|
|
|
-
|
|
|
- default = "brave";
|
|
|
- privateDefault = "brave";
|
|
|
-
|
|
|
- order = [
|
|
|
- "brave"
|
|
|
- "ddg"
|
|
|
- "google"
|
|
|
- ];
|
|
|
-
|
|
|
- engines = {
|
|
|
- nix-packages = {
|
|
|
- name = "Nix Packages";
|
|
|
- urls = [{
|
|
|
- template = "https://search.nixos.org/packages";
|
|
|
- params = [
|
|
|
- { name = "type"; value = "packages"; }
|
|
|
- { name = "query"; value = "{searchTerms}"; }
|
|
|
- ];
|
|
|
- }];
|
|
|
-
|
|
|
- icon = "https://search.nixos.org/favicon.png";
|
|
|
- definedAliases = [ "@np" ];
|
|
|
- };
|
|
|
-
|
|
|
- nixos-wiki = {
|
|
|
- name = "NixOS Wiki";
|
|
|
- urls = [{ template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; }];
|
|
|
- iconMapObj."16" = "https://wiki.nixos.org/favicon.ico";
|
|
|
- definedAliases = [ "@nw" ];
|
|
|
- };
|
|
|
-
|
|
|
- brave = {
|
|
|
- name = "Brave Search";
|
|
|
- urls = [{ template = "https://search.brave.com/search?q={searchTerms}"; }];
|
|
|
- iconMapObj."16" = "https://cdn.search.brave.com/serp/v3/_app/immutable/assets/favicon.acxxetWH.ico";
|
|
|
- definedAliases = [ "@b" "@brave" ];
|
|
|
- };
|
|
|
-
|
|
|
- bing.metaData.hidden = true;
|
|
|
- google.metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
|
|
- };
|
|
|
- };
|
|
|
-
|
|
|
- settings = {
|
|
|
- "zen.tabs.show-newtab-vertical" = false;
|
|
|
- "zen.view.compact.enable-at-startup" = true;
|
|
|
- "zen.view.compact.hide-toolbar" = true;
|
|
|
- "zen.view.compact.toolbar-flash-popup" = true;
|
|
|
- "zen.view.show-newtab-button-top" = false;
|
|
|
- "zen.view.window.scheme" = 0;
|
|
|
- "zen.welcome-screen.seen" = true;
|
|
|
- "zen.workspaces.continue-where-left-off" = true;
|
|
|
- };
|
|
|
-
|
|
|
- containersForce = true;
|
|
|
- containers = {
|
|
|
- Personal = {
|
|
|
- color = "purple";
|
|
|
- icon = "fingerprint";
|
|
|
- id = 1;
|
|
|
- };
|
|
|
-
|
|
|
- Development = {
|
|
|
- color = "blue";
|
|
|
- icon = "briefcase";
|
|
|
- id = 2;
|
|
|
- };
|
|
|
-
|
|
|
- Shopping = {
|
|
|
- color = "yellow";
|
|
|
- icon = "gift";
|
|
|
- id = 3;
|
|
|
- };
|
|
|
-
|
|
|
- Video = {
|
|
|
- color = "red";
|
|
|
- icon = "chill";
|
|
|
- id = 4;
|
|
|
- };
|
|
|
-
|
|
|
- Zofie = {
|
|
|
- color = "orange";
|
|
|
- icon = "fence";
|
|
|
- id = 5;
|
|
|
- };
|
|
|
- };
|
|
|
-
|
|
|
- # TODO: Figure out how to enable this.
|
|
|
- # spacesForce = true;
|
|
|
- spaces =
|
|
|
- let
|
|
|
- containers = config.programs.zen-browser.profiles."default".containers;
|
|
|
- in
|
|
|
- {
|
|
|
- "Personal" = {
|
|
|
- id = "{c6de089c-410d-4206-961d-ab11f988d40a}";
|
|
|
- icon = "🏠";
|
|
|
- container = containers.Personal.id;
|
|
|
- position = 1000;
|
|
|
- };
|
|
|
-
|
|
|
- "Work" = {
|
|
|
- id = "{cdd10fab-4fc5-494b-9041-325e5759195b}";
|
|
|
- icon = "🚀";
|
|
|
- container = containers.Development.id;
|
|
|
- position = 2000;
|
|
|
- };
|
|
|
-
|
|
|
- "Zofie" = {
|
|
|
- id = "{6c3bfa4d-faeb-490a-b10c-d38d260c5750}";
|
|
|
- icon = "✨";
|
|
|
- container = containers.Zofie.id;
|
|
|
- position = 2500;
|
|
|
- };
|
|
|
-
|
|
|
- "Shopping" = {
|
|
|
- id = "{78aabdad-8aae-4fe0-8ff0-2a0c6c4ccc24}";
|
|
|
- icon = "💸";
|
|
|
- container = containers.Shopping.id;
|
|
|
- position = 3000;
|
|
|
- };
|
|
|
-
|
|
|
- "YouTube" = {
|
|
|
- id = "{7cb56859-3be7-47de-9136-0faac58c5336}";
|
|
|
- icon = "https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg";
|
|
|
- container = containers.Video.id;
|
|
|
- position = 4000;
|
|
|
- };
|
|
|
- };
|
|
|
- };
|
|
|
- };
|
|
|
-}
|