The Polyglot NixOS

(x86.lol)

58 points | by todsacerdoti 3 days ago

3 comments

  • teekert 3 hours ago
    I have to say that that "surprisingly simple" thing is happening more and more for me on NixOS as well.

    Recently a customer wanted me to use Fedora (I never visited the RPM side of the world before), and after truly the worst installer I've ever used, the actually system was nice. I do like Cockpit.

    But then I needed to install an initrd that would me unlock the full disk encryption via SSH (it's a remote headless box). It took me half a day and a forum post to get it to work. I wrote a full page of notes for next time. Then the Firewall: I hit a bug (plus user error) which left me wrestling with a non-existent Tailscale interface for a while (it warns you for non-existing interfaces, but not with only a case mismatch, it then lets you do everything as if the interface exists), but after some hours I was done setting the zones, another page of notes and commands to enter to get to the desired state.

    These configurations are both 1 or 2 lines in a NixOS config file. And that "work" is now done for all my NixOS servers.

    You could argue that NixOS hides a lot of complexity, but so do Dracut and Firewalld of course. Nix is difficult, it's a high level abstraction. But it also just a bunch of key-values, and write-once, deploy everywhere.

    • rowanG077 44 minutes ago
      This has been my experience as well. Before I switched to NixOS I used ubuntu for 2 years. I never grokked the ways of apt and how or why it would "randomly" brick my system in some way. With NixOS this has never happened. `nix-shell` is dead simple, adding packages to environment is dead simple, never has it bricked my system. The hard part of NixOS is if you want to do advanced things with the actual nix language, and of course the horrible error messages.

      In terms of all the linux systems I have used, NixOS seemed to least magical to me in terms of what is happening under the hood.

  • actionfromafar 48 minutes ago
    Something about this rubs me the wrong way. You can get completely different behaviour depending on which architecture you boot on.
    • arianvanp 18 minutes ago
      Why? They're all built from the same source code.
  • TOGoS 1 hour ago
    > I thought this would bring some space savings, because files that are not binary code should be largely the same.

    Those ternary blobs tend to be cross-platform, I hear.