Live data from Hacker News

Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

zero-to-nix.com

221–227 of 227 posts

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#221
post #219

Earlier quoted context omitted.

> I can't even get Guix installed on bare metal on my Mac macOS is not a supported platform on Guix, right? Is there new/ongoing work to support that?

Correct. > Is there new/ongoing work to support that? Not a chance -- very focused on free, from what I gather I don't think they even allow discussion of non-free software.

Ah so have you been trying to trailblaze to port Guix to macOS a bit, then?

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#222
post #209
post #171

Earlier quoted context omitted.

> I would love to see a discussion from somebody who really likes Nix on why it isn't ready for prime time yet I have several friends who use Nix and generally recommend it. I do believe I think enough like them to like Nix for the same reasons (declarative, reproducible). I've asked them to play devil's advocate, and I generally get the downsides, but... There is one downside that I feel they can't tell me, but they…

My biggest gripe is they invented their own expression language that could have easily been more familiar. Instead it adds to the learning curve.

I don’t mind that they invented a language, but my impression is that it could be a better language. Less dynamic, better error messages.

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#223
post #221

Earlier quoted context omitted.

Correct. > Is there new/ongoing work to support that? Not a chance -- very focused on free, from what I gather I don't think they even allow discussion of non-free software.

Ah so have you been trying to trailblaze to port Guix to macOS a bit, then?

This will not work.

There's no port of the GNU C Library for macOS, and there's no free toolchain that would let us build binaries for macOS.

Possible routes are:

- virtualization (use a GNU system on top of macOS) - arbitrarily cut the graph and graft macOS-built binaries on top of a huge binary blob specific to macOS

Neither of these seem appealing.

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#224

Earlier quoted context omitted.

But what if I manage my home-manager configuration with flakes.

My very personal recommendation: You don't, at least on a single user machine. Instead you use one of the many dotfile managers out there and for anything package related NixOS. home-manager makes the feedback loop for editing configs managed through it very long, which slowed me personally down a lot. One place where I would recommend home-manager is, if you are not using NixOS and only manage your packages through…

a lot of software support including configuration files, so what I do is that my configuration has a permanent configuration and a temporary configuration through including a "local" file. This even helps as a workaround to managing secrets for some stubborn stuff to which you need to put some api key or password on a text file (shitty software exist). Otherwise, I haven't seen much problem with managing home with home-manager. I also can load the same config with the nixos and darwin modules.

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#225

Earlier quoted context omitted.

But what if I manage my home-manager configuration with flakes.

Usually you’re on a single-user system anyway though. You should be able to manage all that with your global configuration.nix. You’ll also get the benefit of rollbacks.

You can rollback with plain home-manager: https://github.com/nix-community/home-manager/blob/master/do...

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#226
post #223
post #221

Earlier quoted context omitted.

Ah so have you been trying to trailblaze to port Guix to macOS a bit, then?

This will not work. There's no port of the GNU C Library for macOS, and there's no free toolchain that would let us build binaries for macOS. Possible routes are: - virtualization (use a GNU system on top of macOS) - arbitrarily cut the graph and graft macOS-built binaries on top of a huge binary blob specific to macOS Neither of these seem appealing.

Which of these approaches is used by GNU coreutils, GNU sed, GNU grep, etc., on macOS? I love having them whenever I have to use macOS.

Re: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix

#227
post #221

Earlier quoted context omitted.

Correct. > Is there new/ongoing work to support that? Not a chance -- very focused on free, from what I gather I don't think they even allow discussion of non-free software.

Ah so have you been trying to trailblaze to port Guix to macOS a bit, then?

No, not smart enough to "port" exactly, was just trying to get the aarch64 binary to run (no luck), and eventually got it working in a VM: https://n8henrie.com/2022/10/guix-system-guixsd-vm-on-an-m1-...
Post reply on HN