!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

85 Members
https://milano.nix.pizza/6 Servers

Load older messages


SenderMessageTime
22 Jun 2025
@telegram_32436951:t2bot.ioDavid
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
@telegram_463188749:t2bot.ioAlessandro 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
@telegram_463188749:t2bot.ioAlessandro 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
@telegram_463188749:t2bot.ioAlessandro 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
@telegram_32436951:t2bot.ioDavidimage.jpeg
Download image.jpeg
18:59:37
@telegram_32436951:t2bot.ioDavidHo un po' di sticker da portarvi18:59:37
30 Jun 2025
@telegram_98204228:t2bot.ioAlessandro 🤔➖☀️🖌 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
@telegram_73824637:t2bot.ioAndrea Ciceri O comunque starà dentro networking 18:06:04
@telegram_73824637:t2bot.ioAndrea Ciceri Per me devi passare qualche opzione a qemu usando virtualisation.qemu.networkingOptions 18:05:37

There are no newer messages yet.


Back to Room ListRoom Version: 10