Nix/Hyprland-on-Home-Manager: add information on how to export variables when using NixOS with UWSM

This commit is contained in:
Xandor Schiefer 2025-07-11 09:34:06 +02:00 committed by Mihai Fufezan
parent f6f07231f3
commit 6e9d4052f5

View file

@ -247,3 +247,16 @@ exec-once = dbus-update-activation-environment --systemd --all
```
Make sure to use the above command if you do not use the Home Manager module.
#### NixOS UWSM
If you're using the NixOS module with UWSM (`programs.hyprland.withUWSM =
true`), you can [set environment variables][uwsm-env] like this:
```nix {filename="home.nix"}
{
xdg.configFile."uwsm/env".source = "${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh";
}
```
[uwsm-env]: https://github.com/Vladimir-csp/uwsm?tab=readme-ov-file#4-environments-and-shell-profile "Environments and shell profile - UWSM"