Getting George to try and setup nix and run media wiki was actually master stroke of new user on boarding testing…we all know it’s a 5 second operation in docker .
But nix, again proves that almost impenetrable for new users, with confusing entry points , misleading naming and confusing documentation.
The fact that he searches for packages, but needs a ‘nixos service’ , no where does the nix installer on apple macintrash say that it can’t run ‘services or applications that require servers which need to be compose of db or webserver’. The again, no where on ubuntu nix does it say that either.
If i nix-shell -p mediawiki , is there any indication that is not a runable unit like docker?
nix-shell -p mediawiki
‘THIS NEEDS TO BE COMPOSED IN A NIXOS SERVICE, THANKS FOR TRYING ANYWAY’
No where on the mediawiki nix package page does it say ‘this needs to be run as a service, or be composed as a service and will on run on NIXOS’.
There is a lot to unpack with this video, sometimes i wish i could erase everyone mind and make them have zero nix knowledge, and the get them to install MediaWiki on nix…
So, you can see that that installing the Macintrash version, really confuses users, who think they are getting the full nix experience… nix , nixOS, nixel , nix the package manager, and everything called nix.
it seems that a lot of flakes out there now reference flake utils, which just confuses the hell out of new users, going to the flake utils github it says…
'Pure Nix flake utility functions.
The goal of this project is to build a collection of pure Nix functions that don’t depend on nixpkgs, and that are useful in the context of writing other Nix flakes.’
what does that even mean to a new user?
So, the rabbit hole continues, so he installs nix-darwin, which is what i consider a nasty hack to make macintrash look like a nixos system which it is clearly not and never will be.
https://devenv.sh/ can do all this, but when he discovers it … he shy’s away from it because it is not part of the base operating system… that’s exactly what a developer would do… and we all would do until we get into the ecosystem some more.
Why not get devenv.sh part of the base operating system?
Why not get home manager part of the base operating system?
I know the answer to those questions.
The great thing is, he is curious and keeps plugging away at it, because it’s unusual to him, but there is noway he going to win, because he’s already been led down the garden path to loose.
The great thing is, if he tried this 5 years ago, he would of given up in about less than 5 mins… :-).
The quote of year has to be …
‘nix is just arch linux docker for haskell fans’.
LOL! Brilliant!
That really is the best line I’ve ever heard.
looks like i won’t becoming a devops engineer at comma ai anytime soon , darn it.
LOL!
I like to thank George for giving it a shot, and recording the experience for us to learn from…take heed nixxers.