From 1079bdef3a4630c915f62c437187a821167e8d7b Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 27 Jul 2026 01:35:40 +0530 Subject: fix: browserpass works with chromium - Setting the environment variables in hyprland so that chromium launches with all the environment variables, (PASSWORD_STORE_DIR in this case) --- modules/desktop/hyprland/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/desktop') diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix index c1e3053..4c5281d 100644 --- a/modules/desktop/hyprland/default.nix +++ b/modules/desktop/hyprland/default.nix @@ -72,6 +72,18 @@ in xwayland.enable = true; systemd.enable = true; + extraConfig = '' + ${lib.concatStringsSep "\n" ( + lib.mapAttrsToList ( + name: value: + let + escapedValue = lib.escape [ "\"" "\\" ] (toString value); + in + ''hl.env("${name}", "${escapedValue}")'' + ) config.home.sessionVariables + )} + ''; + settings = { monitor = [ { -- cgit v1.2.3