From 6f08696ebe07a32584f3c9daedb07e6c521a4427 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Sat, 30 Aug 2025 13:55:20 -0300 Subject: [PATCH] feat(browser): autocontain configuration for tridactyl --- home/guz/browser.nix | 17 +++++++++++++++++ home/guz/default.nix | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/home/guz/browser.nix b/home/guz/browser.nix index d6326e0..5c77434 100644 --- a/home/guz/browser.nix +++ b/home/guz/browser.nix @@ -13,6 +13,23 @@ id = 3; }; }; + extensions.settings = { + "tridactyl.vim@cmcaine.co.uk".settings = { + userconfig = { + autocontain = let + containers = config.programs.zen-browser.profiles."default".containers; + in + lib.concatMapAttrs (n: v: { + "^https?://[^/]*\"${n}\"/" = v; + "^https?://[^/]*\"www.${n}\"/" = v; + "^https?://([^/]*\\.|)${n}\\.com/" = v; + }) { + "linkedin.com" = containers."Job".name; + }; + autocontainmode = "relaxed"; + }; + }; + }; # modsForce = true; # mods = let # store = inputs.zen-theme-store; diff --git a/home/guz/default.nix b/home/guz/default.nix index 237369a..3fd12b5 100644 --- a/home/guz/default.nix +++ b/home/guz/default.nix @@ -5,8 +5,8 @@ imports = [ ../guz-lite/default.nix - ./browser.nix ./apps.nix + ./browser.nix ]; # The *state version* indicates which default