Open Straffern opened 3 weeks ago
Why do you need its as a global variable for all users rather than setting it in home-manager using home.sessionVariables ?
@bestlem NIXOS_OZONE_WL has to be a global variable. Hyprland does not load user vars.
Can you reverse it? You set hyprland on the nixos system level (you can have just empty option) and then check for that in the home modules with osConfig
? I had a few of these cases myself
I need to set an environment variable depending on if a home manager module is enabled. Specifically I want something like this:
Where desktop.hyprland is a module living in: modules/home/desktop/hyprland/default.nix