22 Jun 2025 |
David | In reply to Mt Qualcuno ha opinioni in merito? guarda se lo scrivono da soli: I want to be clear, we don’t have any problem with Nix itself. But there is a problem with how we were using it. Trying to abstract all the parts of Nix that make Nix… Nix, just fundamentally doesn't work. | 15:41:39 |
Alessandro Candido | Si', pero' anche loro mi sa che ci mettono dell'impegno...
The way Nixpacks uses Nix to pull in dependencies often results in massive image sizes with a single /nix/store layer ... all Nix and related packages and libraries needed for both the build and runtime are here.
With no way of splitting up the Nix dependencies into separate layers, there was not much we could do to reduce the final image sizes. Not a problem with Nix per se but certainly a problem with how we were using it. | 16:47:18 |
Alessandro Candido | Non ho controllato esplicitamente, ma almeno stdenv.mkDerivation separa buildInputs da nativeBuildInputs - per cui immagino non vengano scaricate le derivazioni se il pacco lo trovi gia' nella cache (potevo controllare prima di lanciarmi, ma... non ho avuto voglia, e ho assunto che la differenza fosse significativa) | 16:53:18 |
Alessandro Candido | Add dependencies to nativeBuildInputs if they are executed during the build: - those which are needed on $PATH during the build, for example cmake and pkg-config - ...
Add dependencies to buildInputs if they will end up copied or linked into the final output or otherwise used at runtime: - ... https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies | 16:55:58 |
23 Jun 2025 |
David |  Download image.jpeg | 18:59:37 |
David | Ho un po' di sticker da portarvi | 18:59:37 |
30 Jun 2025 |
Alessandro 🤔➖☀️🖌 | parlando di nixos tests, qual è il modo corretto per impostare il mac address di un host? ho usato networking.interfaces.<nome>.macAddress , ma non sembra avere effetto | 08:40:23 |
Andrea Ciceri | O comunque starà dentro networking | 18:06:04 |
Andrea Ciceri | Per me devi passare qualche opzione a qemu usando virtualisation.qemu.networkingOptions | 18:05:37 |