News for hackers. Stuff that matters.
Re:Reflections on NixOS by infinity0 on Monday August 22, 2016 @07:50AM (#12335594)
It sounds like you're blaming the users for not "unlearning" enough to be able to use NixOS.

As long as you have that attitude, you'll be driving away users. How do you think you can improve your software to make it easier for users to "unlearn" stuff you think is bad?

Re:Reflections on NixOS by Filligree on Monday August 22, 2016 @08:04AM (#12335669)
As a near-fanatic NixOS user (now!), I agree with both you and GP. The learning curve is brutal, so it took me a while to get started, but it's paid off several times over.

It's unfortunate that humans can't trust each other enough that saying "You'll like it after a few months" is good enough, but it's also an inevitable fact of life; for starters, the speaker might be mistaken. I don't think NixOS is for everyone, at least not yet.

And it's hard enough to run arbitrary software that, yes, you do need to learn the Nix language. In most cases it's as easy or easier to package the application for NixOS than it is to run it without packaging, which on the one hand is a benefit to the Nix ecosystem, but on the other hand can be a little annoying. There are workarounds...

But the workarounds require some unusual understanding to begin with.

I think one of NixOS' major flaws at the moment is documentation. There's the wiki, but it's both somewhat outdated and very much not comprehensive. As for Nix, it's been best explained in a series of blog posts, and as good as the Nix Pills series is, you have to find it before you can read it. It's also somewhat short on HOWTOs.

Most people don't like to spend hours writing documentation, though.

The existence of NixOS, and work done on it, is a massive positive externality. Even if it doesn't catch on, it's going to inspire half a dozen clones in the next decade or two. Unfortunately I don't see a good way to get more effort put into it, especially the boring bits (such as documentation)...

I suppose this comment is my way of trying to change that.

Re:Reflections on NixOS by zeendo on Monday August 22, 2016 @08:26AM (#12335799)
Would you suggest the Nix Pills series now? I notice it's 2 years old.
Re:Reflections on NixOS by akavel on Monday August 22, 2016 @08:40AM (#12335880)
As a "common user", I'd say very much yes. It goes quite deep into the internals, and touches underlying ideas and basic mechanisms of Nix, which I don't think are expected to change [ever].

That said, note that it starts to be relevant when you're starting to write Nix expressions (meaning, write something in Nix language). Sometimes also when you want to read them and understand them. Which... is probably quite soon after starting to use Nix/NixOS, if you'll want to tweak some configs or add custom new packages. If you're really, really just doing first steps with Nix/NixOS, and/or just use the default packages with only simple tweaks, I'd say you don't need to read it yet (I personally wouldn't grasp enough basics then to understand WTF the articles are talking about at that point).

Re:Reflections on NixOS by bennofs on Monday August 22, 2016 @08:39AM (#12335868)
I would suggest it, there is not much that has changed about the core of nix/nixpkgs, the nix language is quite stable and most changes have been additions rather than changing existing features.
Re:Reflections on NixOS by Filligree on Monday August 22, 2016 @08:39AM (#12335870)
The Nix language hasn't really changed, so sure. Note that it doesn't say much about NixOS.
Re:Reflections on NixOS by iElectric2 on Monday August 22, 2016 @08:07AM (#12335681)
Because that's fundamental to Nix. We're giving up on some current habits to get the freedom we want.

This won't ever change, but people might.

I'm not blaming them, I feel their pain.

This is common in technology all around, think about driving a car for 25 years with manual transmission and then trying automatic transmission.

Re:Reflections on NixOS by zzzcpan on Monday August 22, 2016 @11:02AM (#12336781)
While some things are fundamental for Nix's architecture, user interfaces are not. You don't even have to force people to learn the language, you can get apt-getish experience for generating .nix files with git-like commits or whatever. There are no limits in making it user-friendly and respecting people's habits and familiarity (which is actually a core concept for interfaces, that you seem to confuse with new technology).
Re:Reflections on NixOS by iElectric2 on Tuesday August 23, 2016 @04:07AM (#12342122)
And that's exactly when shit hits the fan. Now they expect everything will work out with commands managing a language.

At one point, sooner or later, you have to tell them they just need to learn the language.

I'd rather spend time explaining the language than teaching them workarounds.

Having said this, we already do have ways to dodge the language for example using imperative package management. But that's exactly how another such blog post could be written how it doesn't always work due to "freedom" that Nix tries to provide.

Lesson learned here is: pick your fights carefully.

Re:Reflections on NixOS by zzzcpan on Thursday August 25, 2016 @04:55PM (#12362431)
> I'd rather spend time explaining the language than teaching them workarounds.

Good user interface is not a workaround.

I don't think you understand the magnitude of the problem though. By not caring about user experience and forcing people to learn the language you are limiting your target audience to a fraction of professional programmers and pretty much closing the door to everyone else. This will not get Nix anywhere, really. Don't get me wrong, I think what Nix brings us is great and pretty much the only future for package management, but it's very obvious that it's not going to be the Nix itself.

Re:Reflections on NixOS by Ericson2314 on Monday August 22, 2016 @12:46PM (#12337573)
Faking destructive package management on top does exist, and we do plan on making it better, but it's lot harder to get right than you might think.
Re:Reflections on NixOS by zzzcpan on Monday August 22, 2016 @01:57PM (#12338084)
I have some UI ideas of my own and could've helped, but I don't think investing time into Nix would be smart at this point. I feel like Nix lacks a clear vision of its future, focuses on desktop systems, while package management is not a big problem there, but it is on servers, and yet apart from Linux no other server systems are officially supported. No FreeBSD, OpenBSD, NetBSD.
Re:Reflections on NixOS by Ericson2314 on Monday August 22, 2016 @03:54PM (#12338945)
Overall, I don't think the situation is as dire as you say it is, but I do understand why you think these things.

> I feel like Nix lacks a clear vision of its future.

There's various high-level plans that I think have a decent consensus, but not enough people have authority to make things happen. This means that more interesting PRs often rot.

> focuses on desktop systems

Nobody actually prioritizes desktops over servers, and the core design is quite agnostic, but because Nix is over a decade old, lots of old code and documentation do make it seem this way.

> yet apart from Linux no other server systems are officially supported

Other unices work do for userland Nix, and darwin has official binaries which would be the moral equivalent of official support. Also check out https://github.com/triton/triton a fork of nixpkgs which aims to have a NixOS work with FreeBSD kernel, and https://github.com/cleverca22/not-os to better make immutable OS images.

Re:Reflections on NixOS by iElectric2 on Tuesday August 23, 2016 @04:10AM (#12342129)
This statement is completely wrong and ignorant.

Please don't say things if you don't know about them.

Just to prove my point, we've recently merged a branch for hardened compiler flags. This is mainly for server security.

https://github.com/NixOS/nixpkgs/pull/12895

Re:Reflections on NixOS by mst on Monday August 22, 2016 @04:18PM (#12339117)
Write a horrible hacky script that emulates 'npm install --save', see what users do with it?
Re:Reflections on NixOS by Ericson2314 on Monday August 22, 2016 @12:43PM (#12337549)
We're not running a startup here Ok? It's not "grow or die". Priority #1 is make sure all the proper abstractions are in place: foundations before furnature. And while we're pretty good on that front, there are a few things left.

That's said we've got some CLI stuff being rewritten and other work that will help new users.

Re:Reflections on NixOS by chriswarbo on Monday August 22, 2016 @08:54AM (#12335953)
It's really a collective problem caused by user requirements (e.g. needing packages X, Y and Z), upstream practices (e.g. assumptions made by developers of X, Y and Z) and NixOS's unconventional approach (almost everything living in /nix/store/<hash>-<name>).

There's no need to blame anyone, we're just caught in an accident of history. If there is a cause of problems, it's Nix's unconventional approach; but if Nix didn't take that approach it would be just another run-of-the-mill distro with no distinguishing features.

I'd rather live in a world where I can choose whether or not to use NixOS's features, at the expense of its rough edges.