What I'd really want is a system that takes nix files (see Nix & NixOS), and gets that running as a container. Or something like that: Guix or whatever else. Free package-level caching and deduplication, and so on.
What I'd really want is a system that takes nix files (see Nix & NixOS), and gets that running as a container. Or something like that: Guix or whatever else. Free package-level caching and deduplication, and so on.
For a push approach, I am maintaining this project: https://github.com/nix-community/docker-nixpkgs
Both work well for CLI-like applications. What is missing is to get something similar for services where there is a mix of configuration coming from environment variables and files.
https://grahamc.com/blog/nix-and-layered-docker-images
It's far from a native solution, and is a bit hacky due to the 256 layer limitation in docker, but it's most of the way to what you want, I think.
See docker-image and container here: https://guix.gnu.org/manual/en/html_node/Invoking-guix-syste...
If you are using only one system, the NixOS containers support might be enough, though.
https://github.com/NixOS/nixops/issues/565
It has links to solutions people are using, and other related issues.