aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-27 01:35:40 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-27 01:35:40 +0530
commit1079bdef3a4630c915f62c437187a821167e8d7b (patch)
treede70e662271ac73d270b60743cc3f3256e72fef7 /modules
parent8c2587d6a19e5c1799708739b7ae343e54f7fc0e (diff)
downloadhome-manager-config-1079bdef3a4630c915f62c437187a821167e8d7b.tar.gz
home-manager-config-1079bdef3a4630c915f62c437187a821167e8d7b.zip
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)
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix7
-rw-r--r--modules/desktop/hyprland/default.nix12
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 = [
{