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/default.nix | 7 +++++-- modules/desktop/hyprland/default.nix | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index ab9b8bc..eb06ff1 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,5 +1,5 @@ # Modules - Top-level module aggregator importing all submodules -{ ... }: +{ config, ... }: { imports = [ ./communication @@ -19,8 +19,11 @@ ]; config = { - xdg.mimeApps = { + xdg = { enable = true; + mimeApps = { + enable = true; + }; }; }; } 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