summaryrefslogtreecommitdiff
path: root/modules/home/browsers/zen.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/browsers/zen.nix')
-rw-r--r--modules/home/browsers/zen.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/home/browsers/zen.nix b/modules/home/browsers/zen.nix
new file mode 100644
index 0000000..9b2c24d
--- /dev/null
+++ b/modules/home/browsers/zen.nix
@@ -0,0 +1,49 @@
+
+{ self, inputs, ...}: {
+
+ flake.homeModules.zen-browser = {pkgs, lib, ...}: let
+ zen = inputs.zen-browser.homeModules.beta;
+ in {
+ imports = [ zen ];
+
+ programs.zen-browser = {
+ enable = true;
+ setAsDefaultBrowser = true;
+
+ policies = let
+ mkExtensionSettings = builtins.mapAttrs (_: pluginId: {
+ install_url = "https://addons.mozilla.org/firefox/downloads/latest/${pluginId}/latest.xpi";
+ installation_mode = "force_installed";
+ });
+ in {
+ DisableAppUpdate = true;
+ DisableTelemetry = true;
+ DisablePocket = true;
+
+ ExtensionSettings = mkExtensionSettings {
+ "uBlock0@raymondhill.net" = "ublock-origin";
+ };
+
+ Preferences = {
+ "toolkit.legacyUserProfileCustomizations.stylesheets".Value = true;
+ };
+ };
+
+ profiles.default = {
+ search = {
+ force = true;
+ default = "ddg";
+ };
+
+ spacesForce = true;
+ spaces = {
+ "Main" = {
+ id = "5a9831d4-54f2-42c9-aed5-fb511fa7b3f0";
+ position = 1000;
+ icon = "◯";
+ };
+ };
+ };
+ };
+ };
+}