Is it possible to access home config, from nixos config?
Open
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 628
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
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 = mkIf snowfallorg.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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading modules/home/desktop/hyprland/default.nix and the example NixOS configuration in the issue. Determine whether the enabled Home Manager module can be inspected from the NixOS configuration and how that should be exposed; done means the requested environment variable can reliably depend on Hyprland being enabled.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100