!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

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

Load older messages


SenderMessageTime
10 Feb 2026
@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
@telegram_176121111:t2bot.ioFrancescofigo comunque, ieri ho avuto un problema su Darwin che per qualche motivo è lentissimo a scrivere sullo store e mentre scaricava il tarball di nixpkgs evidentemente ha deciso che aveva finito prima che ci fosse tutto e poi si lamentava che il tarball era corrotto, anche se era già stato scritto sullo store16:33:58
@telegram_5487741145:t2bot.ioLuca che penso sia dovuto ai 313 processi che lo usano
sudo , fuser -vm /nix/store/ 2>&1 | wc -l
313

$ sudo , fuser -m /nix/store/
/nix/store:              1rce     2rc     3rc     4rc     5rc     6rc     7rc     8rc    10rc    11rc    13rc   ...
16:33:59
@telegram_5487741145:t2bot.ioLuca correggetemi se sbaglio ma devo riavviare per riavere ro 16:34:21
@telegram_176121111:t2bot.ioFrancescomagari con quel comando lo avrei potuto aggiustare16:34:21
@telegram_5487741145:t2bot.ioLuca non sono sicuro su darwin se iotop è disponibile, ma puoi provare con sudo iotop -u root -aoP a vedere chi sta scrivendo su disco per capire come mai è lento.

Qua documentazione nix shell nixpkgs#iotop --command man iotop
16:45:29
@telegram_7189191315:t2bot.iogecko Cosa ti dice mount -o remount,ro? 🤔 16:49:04
@telegram_5487741145:t2bot.ioLuca
+ 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
mi dice:

$ 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.
16:50:17
@telegram_5487741145:t2bot.ioLuca dmesg non ha più info btw ahahaha 16:51:45
@telegram_176121111:t2bot.ioFrancescoun po' di tempo fa era ancora più lento per colpa di eset32 (computer aziendale :P ) quindi l'ho semplicemente disabilitato, adesso onestamente non ne ho idea e non ho voglia di mettermi lì a capirlo16:51:52
@telegram_5487741145:t2bot.ioLucanon so che sia eset32 ma mi dispiace16:52:47
@telegram_176121111:t2bot.ioFrancescoè un antivirus o qualcosa del genere16:53:24
@telegram_176121111:t2bot.ioFrancescoho disabilitato il real time scanning sul nix store perché c'era da spararsi quando pullavi nixpkgs16:54:50
@telegram_165995843:t2bot.ioNonno FeliceCome ti capisco...17:03:56
29 Feb 2024
@admin:nixos.org@admin:nixos.org changed the history visibility to "world_readable" from "shared".12:19:16
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.12:19:31
@admin:nixos.org@admin:nixos.orgchanged room power levels.12:20:33
@admin:nixos.org@admin:nixos.org left the room.12:20:52
@fgaz:matrix.orgfgaz joined the room.15:24:24

Show newer messages


Back to Room ListRoom Version: 10