4
submitted 6 hours ago by 00xide@lemmy.ml to c/nix@programming.dev

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?

you are viewing a single comment's thread
view the rest of the comments
[-] x74sys@programming.dev 3 points 5 hours ago* (last edited 5 hours ago)

No, I don’t configure using nix, but partially because I don’t use home-manager. So I just write in the native config language.

The other reason is that I don’t believe configuring everything in nix is sustainable. You’re adding another layer that needs to be maintained by someone, and there isn’t much benefit. The native config is as much part of my configuration as a pure nix configuration would be.

And it doesn’t really matter whether it’s dedicated files or just inline in a nix module. I decide based on complexity. My neovim config is spread out over many files, but all other configs are inline.

this post was submitted on 27 May 2026
4 points (100.0% liked)

Nix / NixOS

2747 readers
22 users here now

Main links

Videos

founded 2 years ago
MODERATORS