!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

579 Members
NixOS ❤️ systemd159 Servers

Load older messages


SenderMessageTime
4 Mar 2025
@emilazy:matrix.orgemilyyeah14:22:01
@arianvp:matrix.orgArian anyhow back to the topic. should we mount the initramf’s /nix/store as read-only? (either before starting pid1 or by patching pid1) 14:22:11
@emilazy:matrix.orgemilyI just thought it would be cool to be able to push full NixOS systems out and have them cached to disk "just in time"14:22:25
@emilazy:matrix.orgemilyit seems good/harmless to do so if it's not too invasive14:23:08
@nickcao:nichi.coNick CaoCreate a fuse based nixfs!14:23:18
@emilazy:matrix.orgemilythough there's no potential for persistent changes anyway right, since it's just the store from the initramfs?14:23:19
@nickcao:nichi.coNick CaoI always wanted a thing that: what if we store store paths as compressed nars on the disk, and only use fuse to create an illusion of a nix store14:24:08
@emilazy:matrix.orgemilythat's what Tvix is doing, afaik14:24:23
@emilazy:matrix.orgemilythough I think FUSE performance kind of sucks, so you probably need to put something in the kernel at some point14:24:39
@arianvp:matrix.orgArianI 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 think14:24:45
@emilazy:matrix.orgemilydon't quote me on that though14:24:47
@emilazy:matrix.orgemilyconversely 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
@emilazy:matrix.orgemilyanyway it seems like a good idea. would be nice to avoid patching systemd for it though.14:25:54
@arianvp:matrix.orgArian just s|/usr|/nix/store| through the entire codebase 14:26:14
@arianvp:matrix.orgArian :D 14:26:20
@emilazy:matrix.orgemily we could just move the store into /usr. 14:26:32
@emilazy:matrix.orgemilyI bet that would make Poettering happy.14:26:41
@arianvp:matrix.orgArian yeh but we’ll have to move /nix/var to /var then 14:26:44
@arianvp:matrix.orgArian Honestly how much breaks when we’d set NIX_STORE=/usr/store ? 14:27:01
@nickcao:nichi.coNick Cao /usr/store 14:27:04
@arianvp:matrix.orgAriandid anyone ever try??14:27:06
@nickcao:nichi.coNick CaoSo the length is the same14:27:07
@emilazy:matrix.orgemily make it /usr/local/nix and I'll spend Darwin capital on the paint for the bikeshed 14:27:27
@arianvp:matrix.orgAriansure. gotta rebuild the world. but that’s… fine14:27:30
@nickcao:nichi.coNick Caosed the world actually14:27:43
@emilazy:matrix.orgemilyalternate store directories are nominally supported. the Nix on Droid thing uses them14:27:44
@emilazy:matrix.orgemilythere are packages that hard-code it but not that many. probably NixOS makes more assumptions14:28:10
@emilazy:matrix.orgemilyno fundamental obstacle, to my knowledge14:28:10
@arianvp:matrix.orgArian can you build for a /usr/store on a /nix/store system? 14:28:11
@arianvp:matrix.orgArianlike. how do you bootstrap this14:28:18

Show newer messages


Back to Room ListRoom Version: 6