3 ms·
I just tried out Nix (not NixOS) earlier this week in the context of creating Docker images. Getting started with Nix is easy but getting the hang of the Nix l
by aeurielesn 6y ago
I just tried out Nix (not NixOS) earlier this week in the context of creating Docker images.
Getting started with Nix is easy but getting the hang of the Nix language isn't so much (despite having a reference manual.)
My best advice to get you started with the Nix language is looking at what's already available in <nixpkgs>[1].
Going fast-forward, my Docker image got a lot of unnecessary files in it (include headers, configuration files, /etc/passwd, /etc/group, etc.) I have to come back to it and see how I can improve this.
P.S. On the other hand, I succeeded creating a minimal Docker image using magicpak[2].
[1]: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/libraries https://github.com/NixOS/nixpkgs/tree/master/pkgs/developmen...
[2]: https://github.com/coord-e/magicpak https://github.com/coord-e/magicpak