3 ms·
Now, if something can pull everything from a Nix conf into a docker... that'd be useful. :-D Not something anyone dreamed of I guess.
by actionfromafar 2y ago
Now, if something can pull everything from a Nix conf into a docker... that'd be useful. :-D
Not something anyone dreamed of I guess.
- mastax 2y agoIs this what you were thinking of or something else? https://nix.dev/tutorials/nixos/building-and-running-docker-images.html https://nix.dev/tutorials/nixos/building-and-running-docker-...
- actionfromafar 2y agoI'll be darned. Cool.
- Cyph0n 2y agoFunnily enough, this is a very common approach :) With a Flake, you just need to declare a new output like this: https://github.com/aksiksi/ncdmv/blob/ebd57d02a0fe653e27700381d730c1c05227b5a3/flake.nix#L44 https://github.com/aksiksi/ncdmv/blob/ebd57d02a0fe653e277003... Then to build it: nix build .#docker && docker load < ./result