!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

116 Members
https://milano.nix.pizza/8 Servers

Load older messages


SenderMessageTime
9 Feb 2026
@telegram_524811522:t2bot.ioTonioDomanda interessante. Direi che se un modulo ha un'opzione e un modulo un'altra, la somma dei due dovrebbe essere un modulo con ambo le opzioni12:08:52
@telegram_524811522:t2bot.ioTonioma cmq non funziona, sicuramente per colpa dei booleani, poi magari esistono altri ostacoli12:09:17
@telegram_524811522:t2bot.ioToniose un modulo fissa x = true e un modulo x = false, non esiste un combinatore che vada bene di default, visto che || e && danno risultati opposti12:10:03
@telegram_73824637:t2bot.ioAndrea Ciceriesatto, stavo scrivendolo or ora12:10:33
@telegram_524811522:t2bot.ioTonioma anche le opzioni numeriche, metti che hai un verbose level che ha 0,1,2 come valori possibili. Sommarli e ottenere un numero >2 non ha senso12:11:15
@telegram_524811522:t2bot.ioTonioecco la ragione per cui bisogna specificare una strategia di merge12:11:29
@telegram_524811522:t2bot.ioTonio cmq nerd sniped anche io ora, grazie @amerocu :D 12:11:48
@telegram_524811522:t2bot.ioTonioGuarderò le repo meglio12:12:01
@telegram_73824637:t2bot.ioAndrea Ciceri in generale tutte le opzioni che hanno tipi che possono non mergiare. per esempio le liste mergiano sempre ma i booleani no (devi specificare la priorita con mkOverride) 12:12:07
@telegram_524811522:t2bot.ioTonio Cmq a questo punto mi chiedo come fanno i moduli, posto che so che esistono lib.mkAfter e altro, di default immagino sostituiscano 12:12:46
@telegram_524811522:t2bot.ioToniomagari sulla base dell'import order12:12:53
@telegram_41776856:t2bot.ioMarco TurchettoSorry, ho presupposto il tuo sistema di pinning 🙈13:21:13
@telegram_41776856:t2bot.ioMarco TurchettoQuando dichiari una opzione, puoi impostare un valore di default13:22:08
10 Feb 2026
@telegram_7189191315:t2bot.iogeckoC'è un modo rapido per rifetchare un path in /nix/store? L'ho manomesso e ora rivoglio l'originale :P10:44:06
@telegram_5487741145:t2bot.ioLucaRedacted or Malformed Event10:47:25
@telegram_5487741145:t2bot.ioLuca nix-store --repair-path 10:47:46
@telegram_5487741145:t2bot.ioLuca Oppure nix store repair per flakes • nix store repair ⟨./nix3-store-repair.md⟩ - repair store paths 10:48:29
@telegram_5487741145:t2bot.ioLuca dovrebbe refetchare se trova errori a quanto dice la documentazione nix shell nixpkgs#nix --command man nix-store-repair-path 10:49:35
@telegram_5487741145:t2bot.ioLuca volevo testarlo, come hai fatto a manomettere? qualcosa tipo sudo vim /nix/store? 10:50:36
@telegram_5487741145:t2bot.ioLuca * Oppure nix store repair per flakes 10:50:51
@telegram_5487741145:t2bot.ioLuca no perchè /nix/store read only non basta sudo 11:06:07
@telegram_176121111:t2bot.ioFrancescoMagari puoi rimontarlo come rw11:41:16
@telegram_524811522:t2bot.ioTonioAppunto11:57:28
@telegram_524811522:t2bot.ioTonioIo ho provato a patchare VsCodium per ore11:57:47
@telegram_7189191315:t2bot.iogecko mount -o remount,rw /nix/store 12:40:27
@telegram_7189191315:t2bot.iogeckoThanks!12:41:36
@telegram_5487741145:t2bot.ioLucafigurati :)16:23:56
@telegram_5487741145:t2bot.ioLucaok grazie mille ora provo16:24:11
@telegram_5487741145:t2bot.ioLuca funziona ottimo, l'unica cosa è che rimontare con rw te lo fa fare, ma poi rimontare con ro per ritornare indietro no. probabilemente per tutti i binari in esecuzione presenti nello store penso 16:28:53
@telegram_5487741145:t2bot.ioLuca comunque repair path funziona, ho provato così:

$ fd . --max-results 1 --extension md /nix/store | parallel 'set -x; cp {} ./backup.md && sudo mount -o remount,rw /nix/store/ && sudo sh -c "echo text >> {}" && diff {} ./backup.md 1>&2 || sudo nix store repair $(echo {} | cut -d/ -f1-4) && diff {} ./backup.md && rm -f ./backup.md && sudo mount -o remount,ro /nix/store/; set +x'
+ cp /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0/src/sleep/README.md ./backup.md
+ sudo mount -o remount,rw /nix/store/
+ sudo sh -c 'echo text >> /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0/src/sleep/README.md'
+ diff /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0/src/sleep/README.md ./backup.md
220d219
< text
++ echo /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0/src/sleep/README.md
++ cut -d/ -f1-4
+ sudo nix store repair /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0
copying path '/nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0' from 'https://cache.nixos.org'...
+ diff /nix/store/738nl00xz4fc75xbkcgflc3y6ppqhcjy-rayon-core-1.13.0/src/sleep/README.md ./backup.md
+ rm -f ./backup.md
+ sudo mount -o remount,ro /nix/store/
mount: /nix/store: mount point is busy.
       dmesg(1) may have more information after failed mount system call.
+ set +x

modifica il file, poi lo riscarica da cache.nixos.org e via tutto pulito

pero appunto quando faccio remount,ro mi da mount point busy
16:30:22

Show newer messages


Back to Room ListRoom Version: 10