!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

620 Members
NixOS ❤️ systemd170 Servers

Load older messages


SenderMessageTime
19 Jan 2025
@jade_:matrix.orgjade_yes03:24:50
@jade_:matrix.orgjade_indeed03:24:52
@emilazy:matrix.orgemilyso after you flip the switch some stuff will break and other stuff will start working03:24:57
@emilazy:matrix.orgemilythe stuff that breaks is stuff that should be fixed in Nixpkgs but it's still a pain03:25:06
@jade_:matrix.orgjade_we could certainly make a way to do it, but it's going to be tough03:25:07
@jade_:matrix.orgjade_nix-store --export into nix-store --import more or less ought to do it i think03:25:26
@jade_:matrix.orgjade_or nix copy03:25:30
@emilazy:matrix.orgemilycopying GC that assumes you have 2× your heap size is painful enough when it's in memory, I'm not sure it's workable for a migration plan for disk storage :)03:26:08
@emilazy:matrix.orgemilyor if you mean path by path then I guess that could work03:26:20
@jade_:matrix.orgjade_yeah03:26:28
@jade_:matrix.orgjade_path by path03:26:30
@emilazy:matrix.orgemilythough it'd be awkward to invalidate paths without breaking anything, you might need some kind of overlayed store that combines them 🥴03:26:34
@jade_:matrix.orgjade_due to technical limitations there is no getting away from needing a store worth of extra space i dont think03:26:53
@jade_:matrix.orgjade_unless you want to break the store in the meantime03:27:03
@emilazy:matrix.orgemily I think /nix/store is disposable enough that just telling people to reinstall if they run into case-sensitivity issues might be the best option. but a bit sad. 03:27:03
@jade_:matrix.orgjade_for sure, but we could pretty easily write a cleaner migration script if you do have the space after gc'ing03:27:25
@emilazy:matrix.orgemilyif you can overlay the two stores together then you can just migrate paths in any order and purge the old ones immediately without even worrying about references. unfortunately that is probably even more brittle than the entire rest of the plan03:27:39
@emilazy:matrix.orgemilybut yeah maybe 2× disk isn't so bad I dunno03:27:46
@jade_:matrix.orgjade_the issue with overlaying is that macOS is "lol lmao" as far as doing fs crmes03:27:58
@jade_:matrix.orgjade_so it would not be available to the rest of the system03:28:10
@jade_:matrix.orgjade_ if you accept downtime of the stuff that is in the store, sure, doable 03:28:20
@emilazy:matrix.orgemilytechnically as of Sequoia FSKit lets you do userspace filesystems. (and before that people have abused NFSv4 for it, though whether that'd work for a store I can't say)03:28:46
@emilazy:matrix.orgemilybut yeah not worth it03:28:49
@emilazy:matrix.orgemilywould be nice if they just let you turn on case-sensitivity after the fact.03:29:27
@jade_:matrix.orgjade_i can see the idea of spending a day writing a script to do the nix copy and then mount point switcheroo, but not much more than that personally; maybe someone with more desire to do darwin could03:29:33
@jade_:matrix.orgjade_i think the reason it's not a thing is that it affects the hashtables on disk03:29:42
@jade_:matrix.orgjade_wait a sec, can you copy_file_range or whatever macOS equivalent across APFS containers?03:29:57
@jade_:matrix.orgjade_ie. can we just "lol CoW the contents"03:30:08
@emilazy:matrix.orgemilyI think no. would be cool though.03:30:21
@emilazy:matrix.orgemilynot sure.03:30:29

Show newer messages


Back to Room ListRoom Version: 6