Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • I wonder if it makes sense to create distroless containers like this.
  • I got a bootable NixOS iso down to 91 MB. Pointed Claude at the Nixpkgs repo and asked it to strip things aggressively and inspect the build closure iteratively.

    But the resulting ISO:

    - has no network

    - can't switch configurations

    - doesn't have a text editor

    https://gist.github.com/siraben/a8fce9912891d85e1ec3cf74081b...

  • Hey, thanks, nice adventure! I will have a look. I'm trying to ditch Arch for NixOS and I'm starting from Distrobox probably. Super useful!
  • > we should be able to disable shipping Nix entirely, by setting nix.enable = false.

    It was at this point I began to question the entire exercise. If you don't want nix to even be installed, do you really want NixOS at all?

    It would probably be much simpler to just build an image from scratch with the packages you want, composed in the way you want them, rather than contort the NixOS "UX" to produce the image you want.

  • https://sidhion.com/blog/nixos_server_issues/

    Here's another good article on the topic

    It's unfortunate that Perl and Python are core deps, as well as Bash

  • That's how I manage all of my virtual machines: building an ISO from a NixOS config and booting it as a virtual machine. I'm going to take some time to see what bits of this I can copy to slim down my ISOs.

    One additional benefit: I build all my software from source (by disabling the nix cache) so stripping out these extra programs will not only slim down my ISOs but it will also reduce the build time.

  • What's most amazing is how easy it is to switch kernels on NixOS as this article touched on. This prompted me to switch to Cachy kernels, and after some caching delay (apparently need to switch once before caches set) I was able to take advantage of a completely different OS's core strength. Truly the one OS to rule them all.

Explore Birbla archives