Hacker News new | ask | show | jobs
by pkulak 168 days ago
Oh! Yes, you're totally right. I remember going to a bit of trouble in the beginning to filter to default.nix, because yes, the template absolutely just imported everything. I must have had some good reason, but that reason is lost to time.

Maybe because I have stuff like this: https://github.com/pkulak/nix/blob/main/modules/features/jai...

Not totally sure, but I feel like importing that wouldn't work. Probably you're supposed to put packages in their own place, I guess. But yeah, what I've got works. haha

Unrelated, but thanks for sharing your config! There are a lot of really good ideas in there, and I've only looked at a few files.

1 comments

for packages you just wrap them in `perSystem` and prefix the methods with `pkgs.*`, for example: [1]

Also unrelated, how are you liking Jai? I was following it before it was released but haven't had the time to try it out - I've heard good things even beyond gamedev use cases

[1] https://github.com/rrvsh/tools/blob/prime/nix%2Fpackages%2Fs...