Settings

Theme

NixOS is more complicated than you think but OpenCode fixed it

grigio.org

17 points by grigio 13 days ago · 14 comments

Reader

kesor 11 days ago

How is this low-effort zero-value non-article even on the first page of HN in the first place?

  • SOLAR_FIELDS 11 days ago

    Agree but I think it’s interesting to discuss the larger implication here. Nix the language and ecosystem has historically been completely unapproachable for people unwilling to beat their head against the wall continuously to figure it out. It is famously unapproachable. Now, the benefits are accessible to the quasi-layman. Good news all around

  • feverzsj 11 days ago

    Friends/bots upvotes. It's like the only way to get your post on first page nowadays.

  • aidenn0 9 days ago

    Did you see the 26 minute long video?

aidenn0 11 days ago

I'm not sure how much of this is complicated because of NixOS; going this far off the beaten path would be rather complicated in any distro.

I'd be a lot more sure if the author had posted their nixos configuration somewhere...

tim-projects 11 days ago

> Ultra lightweight

Doesn't nixos use a lot more diskspace than arch, because of its store?

  • linsomniac 11 days ago

    It seems like the "lightweight" they seem to be concerned with is RAM, not disc. I can't really comment on disc space usage on my own NixOS system, though my "thin client" skin does fit nicely on an old Chromebook, I think that guy has 32GB of storage.

    • yjftsjthsd-h 11 days ago

      OTOH I have an ex Chromebook with 16G of storage that I meant to run NixOS until I discovered the initial install needed almost half the disk so I figured it was doomed the moment I tried to update while also having some space used in home. It runs Alpine now, very comfortably.

    • SOLAR_FIELDS 11 days ago

      I’ll just say as nix Darwin user the default vanilla install does not garbage collect well and every 2 months or so I have to hack around nuking shit in my system to free up space. Maybe NixOS itself is better managed and it’s an idiosyncrasy of nix-Darwin. Maybe not

      • tim-projects 10 days ago

        I like the sound of nix but the disk space issue is a deal breaker for me - my sdd is always full.

        I run my main arch system in under 6GB. That's enough for qemu and wine and a few other bits which is all I need - the rest is in VMs

        Would like to switch it to nix though..

        • SOLAR_FIELDS 10 days ago

          I think, like everything with Nix, if you recite the correct incantation for configuration you can avoid this issue. But it’s not default behavior

linsomniac 11 days ago

I've had a similar experience with NixOS configured by Claude Code, and it's been really nice. I have the same config on 3 machines, all managed in one git repo, including home manager and sops, and one of the machines I skin as a "thin client" removing most of my development tools and just using it to SSH/wezterm in to my main dev box, on a small and light ex-chromebook.

whydoineedthis 11 days ago

How is this considered “repeatable” when it takes several pages to describe how it’s glued together? By the same logic the pyramids of Giza are repeatable. Technically true, but not likely worth the effort.

  • aidenn0 11 days ago

    It took several hours to do the first time, and it will take several hours to do the next time. Sounds repeatable to me :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection