hyprwm / hypridle

Hyprland's idle daemon
BSD 3-Clause "New" or "Revised" License
373 stars 22 forks source link

[Question] Upstream Nix modules to home-manager #35

Open aacebedo opened 6 months ago

aacebedo commented 6 months ago

I was wondering if upstreaming the HM modules for hypridle and hyprlock (like for hyprland) was already planned.

If not yet but still accepted I can give it a try.

fufexan commented 6 months ago

Upstreaming the modules is one of the goals. However, it's a bit more involved than just copy-pasting the modules, since I'd like to reuse the nix2hyprlang parser from the Hyprland module. In that case there should be extensive tests for both programs, in the same way Hyprland has them.

If you want, you can make a PR and ping me for review.

aacebedo commented 6 months ago

Thanks for the response . I checked this function a few days ago and my main problem was the handling of repeated fields such as listeners.

Have to find a solution to describe those that would stay compatible with the original idea of the function as it is not possible to have sets with same fields name in nix.

fufexan commented 6 months ago

Isn't it handled by the same functionality as individual keys? i.e. making a list of them will convert the list to multiple entries.