!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

110 Members
https://milano.nix.pizza/7 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 Jun 2025
@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
21 Jul 2025
@telegram_165995843:t2bot.ioNonno FeliceMa voi riuscite ad attivare una specialisation di home-manager se lo usate come modulo di NixOS? Io ora mi ritrovo a dover attivare manualmente lo script di attivazione della generation di home-manager18:34:57
@telegram_32436951:t2bot.ioDavidCosa sono le specialisation di home Manager?18:44:38
@telegram_165995843:t2bot.ioNonno Felice Le stesse di NixOS ma implementate dentro home-manager 18:50:06
@telegram_32436951:t2bot.ioDavidHome manager non si avvia, non lo vedi in grub per dire18:51:41
@telegram_32436951:t2bot.ioDavidMa non ha un menù per scegliere18:50:54
@telegram_165995843:t2bot.ioNonno FeliceAh sì certo, però comunque se fai lo switch non dovrebbe lanciare l'activation script NixOS?18:52:20
@telegram_165995843:t2bot.ioNonno FeliceIn che senso non ha un menù per scegliere?18:51:18
@telegram_73824637:t2bot.ioAndrea Ciceri non puoi farti uno script che attiva la specialisation e poi riavvia il servizio home-manager-<username>? 19:23:26
@telegram_165995843:t2bot.ioNonno Felice
se usi home-manager come submodule in nixos tanto vale usare le specilisation di nixos IMO
Non posso perché nella specialisation di home-manager vado a fare delle configurazioni specifiche in user space (configuro Niri)
19:16:43

Show newer messages


Back to Room ListRoom Version: 10