| 4 Mar 2025 |
Arian | I have usecases where I dont actually have a stage-2 and just bring the app up in initrd. In that case it’s definitely useful I think | 14:24:45 |
emily | don't quote me on that though | 14:24:47 |
emily | conversely maybe we'd want an escape hatch for people wild enough to actually want to run a daemon in stage 1? but those people also probably know what they're doing enough to make it work for themselves anyway. | 14:25:34 |
emily | anyway it seems like a good idea. would be nice to avoid patching systemd for it though. | 14:25:54 |
Arian | just s|/usr|/nix/store| through the entire codebase | 14:26:14 |
Arian | :D | 14:26:20 |
emily | we could just move the store into /usr. | 14:26:32 |
emily | I bet that would make Poettering happy. | 14:26:41 |
Arian | yeh but we’ll have to move /nix/var to /var then | 14:26:44 |
Arian | Honestly how much breaks when we’d set NIX_STORE=/usr/store ? | 14:27:01 |
Nick Cao | /usr/store | 14:27:04 |
Arian | did anyone ever try?? | 14:27:06 |
Nick Cao | So the length is the same | 14:27:07 |
emily | make it /usr/local/nix and I'll spend Darwin capital on the paint for the bikeshed | 14:27:27 |
Arian | sure. gotta rebuild the world. but that’s… fine | 14:27:30 |
Nick Cao | sed the world actually | 14:27:43 |
emily | alternate store directories are nominally supported. the Nix on Droid thing uses them | 14:27:44 |
emily | there are packages that hard-code it but not that many. probably NixOS makes more assumptions | 14:28:10 |
emily | no fundamental obstacle, to my knowledge | 14:28:10 |
Arian | can you build for a /usr/store on a /nix/store system? | 14:28:11 |
Arian | like. how do you bootstrap this | 14:28:18 |
emily | I think you need a separate daemon | 14:28:20 |
Willi Butz | /usr/nix/store definitely works as is, with a ro-bind to /nix/store (done with the verity repart module) | 14:28:26 |
Lily Foster | In reply to @emilazy:matrix.org alternate store directories are nominally supported. the Nix on Droid thing uses them (nix on droid also does sketchy bwrapping to pretend it's at /nix/store iirc) | 14:28:27 |
emily | can't use bwrap on Android. I think PRoot is involved | 14:28:51 |
Arian | that’s in. stage-2. I’m talking about the nix store in the initramfs willi | 14:29:00 |
Lily Foster | In reply to @emilazy:matrix.org can't use bwrap on Android. I think PRoot is involved yeah that, proot | 14:29:04 |
emily | but I swear I've seen an Android Nix thing that just uses the weird Android directory directly | 14:29:05 |
Lily Foster | In reply to @lily:lily.flowers yeah that, proot (apologies, too tired this morning) | 14:29:13 |
Willi Butz | In reply to @arianvp:matrix.org that’s in. stage-2. I’m talking about the nix store in the initramfs willi ah, got it. doesn't help because the bind mount cant be setup by tooling that resides in the yet to be mounted store %) | 14:30:18 |