!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms294 Servers

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


SenderMessageTime
24 Oct 2025
@lillecarl:matrix.orglillecarlOnce I have that metadata available I can build the GC myself, np23:15:59
@522_:catgirl.cloud522 it/its ⛯ΘΔyou'd be unable to use the nix GC then, no? if you have dead store paths that you want to keep around unless you're making/deleting gcroots for them automatically23:17:02
@lillecarl:matrix.orglillecarlBut now I have to run "nix build && nix-touch" or "nix copy && nix-touch" where nix-touch is a program I've written that updates registrationtime of packages, which works but is 23:17:27
@lillecarl:matrix.orglillecarlYeah I'd just never use the GC, I would use nix-store --gc --print-dead and query the database for when they were last referenced, then call "nix-store --delete"23:18:16
@lillecarl:matrix.orglillecarlThis is not very useful for a single machine/configuration workflow, it's useful when you're building a binary cache where you never install anything into gcroots23:19:48
@lillecarl:matrix.orglillecarl(And I have to operate on db.sqlite myself, which is... "scary")23:20:59
@lillecarl:matrix.orglillecarl(And it suxx a bit since updating registrationtime isn't possible without superduper permissions) so I have to do setup sudoers to trust nix-touch and execute as root)23:25:20
@lillecarl:matrix.orglillecarl* (And it suxx a bit since updating registrationtime isn't possible without superduper permissions) so I have to do setup sudoers to trust nix-touch and execute as root23:25:26
@lillecarl:matrix.orglillecarl* (And it suxx a bit since updating registrationtime isn't possible without superduper permissions so I have to do setup sudoers to trust nix-touch and execute as root)23:31:35
@lillecarl:matrix.orglillecarl 522 it/its ⛯ΘΔ: But also: Even the default GC is a bit eager at removing things as it is right now. It'll happily remove anything you don't have in gcroots even if you fetched it five minutes ago, the likelyhood that you're going to use something you fetched 5 minutes ago is pretty high... 😄 23:33:26
@522_:catgirl.cloud522 it/its ⛯ΘΔ i mean i do personally think time shouldn't really be a factor in gc, since that's kinda fragile 23:35:55
@522_:catgirl.cloud522 it/its ⛯ΘΔthe correct way to do this imoimo is to add stuff to gcroots23:36:46
@lillecarl:matrix.orglillecarl🤷 There's a reason why nixbuild, attic and cachix do something similar but ofc it's a perfectly valid opinion to leave QOL features to external tools23:40:05
@522_:catgirl.cloud522 it/its ⛯ΘΔlike, once you have "nix run makes a gcroot in a specified directory" then you can do your own gc management on that yourself without involving nix code23:40:53

Show newer messages


Back to Room ListRoom Version: 10