Devenv.sh: Fast and reproducible developer environments using Nix
1–10 of 171 posts
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#2Re: Devenv.sh: Fast and reproducible developer environments using Nix
#3Re: Devenv.sh: Fast and reproducible developer environments using Nix
#4Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#5Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#6Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#7Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
If I’m not mistaken, Nix uses cgroups as well on non-NixOS systems, so it is basically containers. You’re probably thinking about docker as a whole, in which Nix is effectively an alternative package manager/distribution system for containers.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#8Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
Also you can have multiple versions of the package cached.
Also all your environments benefit from the cache, since each "layer" is independent.
Docker's layer based caching is very limiting for larger images. With Nix you spend basically no time on incremental builds outside of the time for the one package you changed.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#9Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
Nix (not to be confused with NixOS) is a package manager. Think of it like apt.
Containers on the other hand are (usually) utilizing kernel level isolation to run a whole user space starting with PID 1. These isolation techniques have overhead.
Since Nix is a user space application, you can run it in a container and Nix provides one `nixos/nix`.
Re: Devenv.sh: Fast and reproducible developer environments using Nix
#10Can someone explain to me the advantage of using Nix over containers? What do they offer that are not provided with using docker or other container platform.
If I’m not mistaken, Nix uses cgroups as well on non-NixOS systems, so it is basically containers. You’re probably thinking about docker as a whole, in which Nix is effectively an alternative package manager/distribution system for containers.