this post was submitted on 04 Dec 2024
30 points (91.7% liked)
Nix / NixOS
1976 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Way I see it the only reasons to use docker on nixos is if:
That said using nixos inside a docker container is an appealing proposition in that you get all the usual advantages of nix but can run it anywhere you can run docker images
I'd definitely use it (and I do) for deploying remote software and for the use cases you mentioned. Still, we can all agree that, in the context of Nixos, native derivations are superior and almost always preferred. I am currently using a flatpak of zen-browser until the derivations can get added to nixpkgs. But that's just a temporary patch that I will remove soon. I have also seen containers outperform Nix in software that strictly enforces the FHS style and doesn't play nicely in the immutable world.