With Hyprland moving to Lua, I may make the switch to Lua-based configuration for my Hyprland and Neovim based workflow.
I went with nvf over stock Neovim so that I could handle everything in one language (Nix) as much as possible. I have a few Lua snippets, but that’s all.
Now with Hyprland making the switch to Lua as well, I’ve been considering importing dedicated Lua files into my Nix config.
So, what do you do? Write Nix as much as possible? Use Nix to import your Lua/yaml/etc config? Write other languages as snippets in your .nix files?


I usually prefer to use nix, as it’s a real language and basically serves as macro language/preprocessor for the configs that don’t have functions or such (obviously in this case Lua does) . So it gives me everything in one language (thank I generally kinda like), with proper highlighting, I can reuse code, and I can more easily cross reference between different services/apps.
That said, I didn’t know hyprland was going to make this switch. I guess I finally have to go see if I will like niri.