zlacker

[parent] [thread] 4 comments
1. 0xCMP+(OP)[view] [source] 2025-01-05 15:42:21
Of course, that means you need to run NixOS for that to work (which I also do everywhere) and there are networking problems with Docker/Podman in NixOS you need to address yourself. Whereas Docker "runs anywhere" these days.

Worth noting the tradeoffs, but I agree using Nix for this makes life more pleasant and easy to maintain.

replies(2): >>diggan+H3 >>libecl+W9
2. diggan+H3[view] [source] 2025-01-05 16:12:12
>>0xCMP+(OP)
> that means you need to run NixOS for that to work

Does it? I'm pretty sure you're able to run Nix (the package manager) on Arch Linux for example, I'm also pretty sure you can do that on things like macOS too but that I haven't tested myself.

Or maybe something regarding this has changed recently?

replies(1): >>0xCMP+1t
3. libecl+W9[view] [source] 2025-01-05 17:01:06
>>0xCMP+(OP)
You don't need NixOS to use Nix as a package manager/build system
replies(1): >>brnt+zb
◧◩
4. brnt+zb[view] [source] [discussion] 2025-01-05 17:15:33
>>libecl+W9
If you configure your server(s) through nix and nix containers, then even without another host OS you are basically running nix.
◧◩
5. 0xCMP+1t[view] [source] [discussion] 2025-01-05 19:27:10
>>diggan+H3
sorry, yes to build it is fine, but managing them with Nix (e.g. dealing with which ports to expose and etc like in the article) requires NixOS.

edit: I actually never checked, but I guess nothing stops home-manager or nix-darwin from working too, but I don't think either supports running containers by default. EOD all NixOS does is make a systemd service which runs `docker run ..` for you.

[go to top]