feat(hyprland): render session env registry #156

Merged
alexion merged 1 commits from feat/desktop-env-registry-consumers into main 2026-10-11 16:36:24 -04:00
Owner

Summary

  • Add desktop-owned NIXOS_OZONE_WL to the session env registry.
  • Add Stylix-derived HYPRCURSOR_THEME and HYPRCURSOR_SIZE registry entries.
  • Render the current host's env registry entries as Hyprland Lua hl.env(...) calls.

Verification

  • nix eval --json '.#nixosConfigurations' --apply 'configs: builtins.mapAttrs (name: cfg: let user = cfg.config.user.name; in { registry = cfg.config.registry.env.${name} or {}; home = cfg.config.home-manager.users.${user}.home.sessionVariables; hyprlandEnv = cfg.config.home-manager.users.${user}.wayland.windowManager.hyprland.settings.env or []; }) configs' | jq '{zeus: .zeus, neogaia: .neogaia, pikachu: .pikachu}'
  • nix eval --raw '.#nixosConfigurations.zeus.config.home-manager.users.alexion.xdg.configFile."hypr/hyprland.lua".text' | python3 -c ...
  • nix run .#fix
  • bazel run //src/natu:natu -- configs/nixos/modules/desktop/default.nix configs/nixos/modules/desktop/utilities/theming.nix configs/nixos/modules/desktop/session/hyprland/default.nix
## Summary - Add desktop-owned `NIXOS_OZONE_WL` to the session env registry. - Add Stylix-derived `HYPRCURSOR_THEME` and `HYPRCURSOR_SIZE` registry entries. - Render the current host's env registry entries as Hyprland Lua `hl.env(...)` calls. ## Verification - `nix eval --json '.#nixosConfigurations' --apply 'configs: builtins.mapAttrs (name: cfg: let user = cfg.config.user.name; in { registry = cfg.config.registry.env.${name} or {}; home = cfg.config.home-manager.users.${user}.home.sessionVariables; hyprlandEnv = cfg.config.home-manager.users.${user}.wayland.windowManager.hyprland.settings.env or []; }) configs' | jq '{zeus: .zeus, neogaia: .neogaia, pikachu: .pikachu}'` - `nix eval --raw '.#nixosConfigurations.zeus.config.home-manager.users.alexion.xdg.configFile."hypr/hyprland.lua".text' | python3 -c ...` - `nix run .#fix` - `bazel run //src/natu:natu -- configs/nixos/modules/desktop/default.nix configs/nixos/modules/desktop/utilities/theming.nix configs/nixos/modules/desktop/session/hyprland/default.nix`
alexion added 1 commit 2026-10-11 16:34:59 -04:00
alexion merged commit 370cab8f83 into main 2026-10-11 16:36:24 -04:00
alexion deleted branch feat/desktop-env-registry-consumers 2026-10-11 16:36:24 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dev#156