Live data from Hacker News

Nix in 100 Seconds [video]

youtube.com

1–10 of 18 posts

Re: Nix in 100 Seconds [video]

#4

Nice explanation. But Nix is known for a steep learning curve, there is any reason for this?

It's not a curve, it's a wall. I've tried and failed twice. I think I irreparably messed up my macOS installation with tons of crap by trying.

Yeah, nix on macOS can be a pain…

You might be too deeply scarred to come close to it, but we just wrote a blog post about deploying NixOS servers without installing nix locally or provisioning work here that feels relevant: https://garnix.io/blog/hosting-nixos

Re: Nix in 100 Seconds [video]

#5
post #4

Earlier quoted context omitted.

It's not a curve, it's a wall. I've tried and failed twice. I think I irreparably messed up my macOS installation with tons of crap by trying.

Yeah, nix on macOS can be a pain… You might be too deeply scarred to come close to it, but we just wrote a blog post about deploying NixOS servers without installing nix locally or provisioning work here that feels relevant: https://garnix.io/blog/hosting-nixos

if anyone is afraid of this happening to them, I'd recommend the deterministic nix installer. it has an atomic installation process where each step is reversible with the uninstaller. This is uniquely a macos issue since the setup is a bit different to other OS's in terms of creating a read only filesystem for the nix store, but the determinate installer was built to fix any worries of that happening.

https://github.com/DeterminateSystems/nix-installer

Re: Nix in 100 Seconds [video]

#6

Nice explanation. But Nix is known for a steep learning curve, there is any reason for this?

It's not a curve, it's a wall. I've tried and failed twice. I think I irreparably messed up my macOS installation with tons of crap by trying.

macOS’s core is in a read-only volume for a few years now, so I doubt you can mess it up unless you disable system integrity.

Re: Nix in 100 Seconds [video]

#7

Nice explanation. But Nix is known for a steep learning curve, there is any reason for this?

The learning curve depends strongly on what you are trying to do. Many things are very undocumented in Nix, and the interpreter being lazy creates very hard to read errors. No static typing makes everything worse.

If you are trying to configure your system using NixOS, the available options are very well documented so I personally rarely get into trouble.

Packaging an application however can be very difficult.

Re: Nix in 100 Seconds [video]

#8
was wondering when this guy would drop a video on nix. pleasantly surprised by the result, although i do find it funny that he had to go well over the usual 100 seconds. that's nix for you.

one benefit that doesn't get much lipservice in elevator pitches for nix, here included, is the experience of packaging. i think the average line count in my personal collection of obscure software is ~30, and that's including license/homepage metadata and other such junk -- it can make even bsd portfiles look tubby by comparison.

Re: Nix in 100 Seconds [video]

#9
post #4

Earlier quoted context omitted.

Yeah, nix on macOS can be a pain… You might be too deeply scarred to come close to it, but we just wrote a blog post about deploying NixOS servers without installing nix locally or provisioning work here that feels relevant: https://garnix.io/blog/hosting-nixos

if anyone is afraid of this happening to them, I'd recommend the deterministic nix installer. it has an atomic installation process where each step is reversible with the uninstaller. This is uniquely a macos issue since the setup is a bit different to other OS's in terms of creating a read only filesystem for the nix store, but the determinate installer was built to fix any worries of that happening. https://github.…

can vouch for the detsys installer, and anecdotally, the resulting nix install seems more resilient across os updates. on a similar note, nix-darwin is a must-have. the typical nix-env stuff you see in introductions to nix on non-nixos systems really sells it short, as it feels like just another package manager to keep track of. by contrast, nix-darwin brings the centralised configuration.nix approach, which makes it way harder to hose your environment.

https://github.com/LnL7/nix-darwin

Post reply on HN