News for hackers. Stuff that matters.
Re:NixOS 26.05 by LelouBil on Monday June 29, 2026 @12:14PM (#48721144)
[delayed]
Re:NixOS 26.05 by christophilus on Monday June 29, 2026 @12:41PM (#48721520)
> static electricity typing

I assume that was an autocomplete typo?

Re:NixOS 26.05 by LelouBil on Tuesday June 30, 2026 @01:10PM (#48735806)
Lol yes
Re:NixOS 26.05 by Shoue on Monday June 29, 2026 @01:39PM (#48722397)
Adding TS types to Nix would make it so much easier to write Nix code. Which string do I need here? Oh the type system knows, the language server shows it inline - I don't have to look at the source. I've used NixOS since 2018 and written nixpkgs derivations and it would've saved me so much time.

I'm glad that TypeNix exists but it really should just be officially supported or even the default.

Re:NixOS 26.05 by reinitctxoffset on Monday June 29, 2026 @06:32PM (#48726205)
I'm fairly close to releasing something called nix-compile, which is a type inferring Hindley-Milner compiler that unifies across nixlang and bash. It finds a lot of bugs. Because it has a very complete view of your project, it can do cute stuff like precise go to definition across modules, annotate code with types in the comments, it's cool.