Spectrum OS: a declarative, reproducible, compartmentalized Linux
&gt; The host system and isolated environments will all be managed declaratively and reproducibly using Nix, a purely functional package manager<p>Nix seems cool, but all of my forays into it have been so unpleasant as to be unworkable. It seems to work well enough if all of your dependencies are already in the Nix store and have been thoroughly tested, but as soon as one has to start writing Nix packages themselves it&#x27;s a train wreck: the peculiarities of the Nix expression language, the chaos and lack of documentation in nixpkgs, the immense understanding one must have of the common low-level libraries used to create Nix packages, and you&#x27;ll still spend tons of time trying to package obscure C dependencies with their own bespoke build systems.<p>My constructive feedback is:<p>1. Add types to the Nix expression language so someone digging through the code can have <i>some</i> idea about what needs to be passed into various functions. This would probably help people traverse nixpkgs as well, since the client code will need to &quot;import&quot; the types of its arguments.<p>2. Make Nix more syntactically familiar. Familiarity here seems like it should be more important than innovating on programming language syntax. Thanks for not going full-Haskell on us, but it would be nice if looked more like JavaScript or Python or something that virtually any programmer could look at and recognize (I&#x27;m no great fan of either of those languages).<p>3. Very controversial, but the whole industry needs to minimize the number of C and C++ dependencies. Not only are these languages fundamentally insecure, but projects in these languages have their own bespoke build systems which assume dependencies are already installed at the correct versions and in the correct paths. Packaging these projects is <i>painful</i>, and it&#x27;s largely the reason we have package maintainers who specialize not in building programs of a certain language, but in building certain dependencies.