TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Purely Functional Linux with NixOS [video]

169 点作者 begriffs将近 9 年前

12 条评论

qwerty12653将近 9 年前
I really want to like NixOS, but there&#x27;s a serious lack of examples of how to deploy common web infrastructure with it, and that&#x27;s bitten me the few times I&#x27;ve tried to play with it.<p>For example, our stack is nginx, uwsgi, django, elasticsearch, and postgres. Installing most of the pieces seemed relatively straightforward(though required a fair bit of searching through the nixpkgs source), but it&#x27;s honestly pretty unclear how to install our actual django app.<p>Currently we just clone the repo to the server and point uwsgi to the relevant uwsgi.py file, but it doesn&#x27;t seem like there&#x27;s a good way to do that in NixOS.<p>I&#x27;d love to hear that I&#x27;m wrong here, but again, the lack of decent example documentation is really the single biggest issue I have with NixOS. The rest of the documentation seems to be improving slowly but steadily.
评论 #12251429 未加载
qwertyuiop924将近 9 年前
Am I the only one who thought Guix did this better? Maybe it&#x27;s just my freakish and unnatural love of parenthesis. Or my hatred of learning new configuration syntaxes (I just want to install packges, dammit! Yes, I enjoy learning new languages, but I need to get this machine up and running, and I don&#x27;t want to learn your new programming language to do that)
评论 #12250240 未加载
评论 #12250273 未加载
评论 #12250271 未加载
评论 #12250277 未加载
评论 #12251415 未加载
评论 #12251185 未加载
k__将近 9 年前
I think NixOS is the future, but there needs to be more time put into UX.<p>Distros like Ubuntu are still much easier to get running and this scares many people away :&#x2F;
评论 #12250713 未加载
评论 #12250264 未加载
corysama将近 9 年前
My Linux experience so far has been limited to ls, cd and vi. From the outside, package management has always seemed to me like a huge mess. But, I&#x27;ve been starting to learn Nix recently and I really like it. I can add, remove, test, screw up, change my mind, whatever without stress.
评论 #12250418 未加载
评论 #12251091 未加载
评论 #12250846 未加载
fizzbatter将近 9 年前
I love the idea of NixOS, but overall i think i need to wait for it to be a bit more user friendly. The number of times i was completely perplexed when i tried to use this as my home server was.. well, numerous.<p>Awesome idea, and the rollbacks were great, but i kept having to write my own packages and it was all a bit too confusing to do that constantly.
themartorana将近 9 年前
Anyone using NixOS as a server in production? We&#x27;re on FreeBSD now but I think Linux in our stack is inevitable (many servers, like Aerospike, are Linux only). There&#x27;s always Ubuntu, but this looks lovely. I&#x27;ve had my eye on it for a personal Linux workstation but haven&#x27;t heard anything about it as a server.
评论 #12250305 未加载
评论 #12250205 未加载
评论 #12250246 未加载
评论 #12250468 未加载
transfire将近 9 年前
It&#x27;s very cool what Nix has managed to accomplish. Unfortunately, after studying it I&#x27;ve started to think the solution is overwrought and might be more trouble than the problem is solves, or as I like to say, &quot;with solutions like that who needs problems?&quot;<p>I think it boils down to these points from the summary:<p>&gt; Thus the same package can coexist on the system with multiple configurations.<p>That we have to worry about multiple <i>static compilations</i> of a package hits a deeper problem that Nix can&#x27;t fix. Namely that there really shouldn&#x27;t be any need for static install configurations. So the only static differentiation that should be necessary is version.<p>&gt; The derivation is a string in key-value format which will ultimately be hashed and which can refer to objects in the Nix store<p>So why create a whole new &quot;expression&quot; language just to generate these? Developers work with key-value formats all the time (e.g. YAML, JSON). The whole functional language thing seems almost like a slight of hand when you realize this is the end result.
sdegutis将近 9 年前
&gt; <i>where multiple versions of the same library or application can live in harmony</i><p>How does NixOS solve the diamond dependency problem?
评论 #12250187 未加载
评论 #12250177 未加载
评论 #12250137 未加载
评论 #12250121 未加载
awqrre将近 9 年前
In a CAD world, that would be like parametric drafting?
评论 #12250799 未加载
评论 #12250826 未加载
评论 #12250879 未加载
dominotw将近 9 年前
so could this replace docker as distribution format? cgroups and namespaces can be use independently of docker.
评论 #12252140 未加载
davexunit将近 9 年前
See also GNU Guix.<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;guix&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;guix&#x2F;</a>
评论 #12250316 未加载
评论 #12250212 未加载
评论 #12250391 未加载
paxcoder将近 9 年前
GNU&#x2F;Linux distribution with revertible package management.<p>EDIT: I believe that my description is more accurate and if I am wrong I would like to be corrected. But I&#x27;d appreciate if you didn&#x27;t downvote me simply because I use the term &quot;GNU&#x2F;Linux&quot;. I don&#x27;t downvote you if you use the kernel&#x27;s name for the entire OS. Thanks.