mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-12-20 03:30:02 +01:00
Nix/Hyprland-on-Home-Manager: add information on how to export variables when using NixOS with UWSM
This commit is contained in:
parent
f6f07231f3
commit
6e9d4052f5
1 changed files with 13 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue