!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

576 Members
NixOS ❤️ systemd158 Servers

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


SenderMessageTime
24 Mar 2025
@p14:matrix.orgp14

Thanks for the hint; could this explain the oddity I'm seeing?

Essentially, I have a ro store, that I mount at /nix/rostore, and then a writable partition I mount at /. I want to make /nix/store be an overlayfs with /nix/store (on the writable partition) with the rostore as the lower layer. I have something that works, but then the /nix/store directory appears empty if you try to list the files in it. Directly opening the paths is fine.

I can't figure out why I can't get a sane overlayfs mount..

18:53:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org p14: the quickest guidance I can think of is that I did this for the ISO here: https://github.com/NixOS/nixpkgs/pull/291750 18:54:14
@p14:matrix.orgp14Essentially I'm trying to do something like https://github.com/NixOS/nixpkgs/blob/8e3b25f1708783d02963efe47222adb0a8e6f4f7/nixos/modules/installer/cd-dvd/iso-image.nix#L81318:54:17
@p14:matrix.orgp14Oh cool, will definitely unpack taht18:54:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org p14: oh, actually, I forgot it was already basically correct in the ISO 18:55:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhat's wrong with doing it the way the ISO does it already?18:55:15
@p14:matrix.orgp14I guess one difference there is that / is tmpfs18:55:19
@p14:matrix.orgp14I don't want / as tmpfs18:55:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat doesn't really matter18:55:29
@p14:matrix.orgp14Well, OK, but then if I try to do what I perceive to be the obvious thing, I end up with this weird thing which doesn't quite work properly18:55:50

Show newer messages


Back to Room ListRoom Version: 6