You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to access home config, from nixos config? #137
I need to set an environment variable depending on if a home manager module is enabled. Specifically I want something like this:
environment.sessionVariables.NIXOS_OZONE_WL=mkIfsnowfallorg.users.${config.${namespace}.user.name}.home.config.desktop.hyprland.enable"1";# Hint electron apps to use wayland
Where desktop.hyprland is a module living in:
modules/home/desktop/hyprland/default.nix
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
Activity
bestlem commentedon Nov 7, 2024
Why do you need its as a global variable for all users rather than setting it in home-manager using home.sessionVariables ?
Straffern commentedon Nov 12, 2024
@bestlem NIXOS_OZONE_WL has to be a global variable. Hyprland does not load user vars.
Nikola-Milovic commentedon Nov 16, 2024
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