diff --git a/flake.lock b/flake.lock index 5de24f1..47be15e 100644 --- a/flake.lock +++ b/flake.lock @@ -1391,11 +1391,11 @@ ] }, "locked": { - "lastModified": 1766897152, - "narHash": "sha256-mD1GDg1eIHYUwk536j4uJX1IfQArsLQm2SL7rTQwAPI=", + "lastModified": 1767119591, + "narHash": "sha256-4LqJZvu+8i0cTtwz+N3nfIvVf6Ra4xIGw0UxOOHVKAc=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "fe8d1a61a904b336f453d7ab5ae7d691a21c5cbf", + "rev": "379639ecac155c03975cd6608a146bb1dc168cf9", "type": "github" }, "original": { diff --git a/hosts/doloro-laptop/home.nix b/hosts/doloro-laptop/home.nix index 0e7f0b8..b217a2e 100644 --- a/hosts/doloro-laptop/home.nix +++ b/hosts/doloro-laptop/home.nix @@ -18,7 +18,7 @@ quickshell.enable = true; # chromium.enable = true; wivrn.enable = false; - helium.enable = true; + helium.enable = false; sops.enable = true; wakatime.enable = false; # remoteBuild.use-remote-builders = true; diff --git a/hosts/doloro/home.nix b/hosts/doloro/home.nix index d4b896f..8832eb6 100644 --- a/hosts/doloro/home.nix +++ b/hosts/doloro/home.nix @@ -15,7 +15,7 @@ # chromium.enable = true; wivrn.enable = true; sops.enable = true; - helium.enable = true; + helium.enable = false; nixvim.enable = true; helix.enable = false; stylix.enable = true; @@ -27,6 +27,7 @@ autostart = true; }; blender.enable = true; + zen-browser.enable = true; bottles.enable = true; fish.enable = true; youtube-music.enable = true; diff --git a/modules/zen-browser/home.nix b/modules/zen-browser/home.nix index b14ed14..2c95332 100644 --- a/modules/zen-browser/home.nix +++ b/modules/zen-browser/home.nix @@ -2,6 +2,7 @@ config, inputs, lib, + system, pkgs, fetchFromGitHub, ... @@ -21,6 +22,60 @@ in config = lib.mkIf cfg.enable { programs.zen-browser = { enable = true; + policies = { + AutofillAddressEnabled = true; + 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; + }; + }; }; + xdg.mimeApps = + let + value = + let + zen-browser = inputs.zen-browser.packages.${system}.twilight-official; # or twilight + in + zen-browser.meta.desktopFileName; + + associations = builtins.listToAttrs ( + map + (name: { + inherit name value; + }) + [ + "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" + ] + ); + in + { + associations.added = associations; + defaultApplications = associations; + }; }; }