!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

624 Members
NixOS ❤️ systemd171 Servers

Load older messages


SenderMessageTime
4 Mar 2025
@raitobezarius:matrix.orgraitobezariuswrt to EFI drivers14:18:38
@raitobezarius:matrix.orgraitobezariusand it's still pid1 doing the work14:18:43
@raitobezarius:matrix.orgraitobezariusit's a lot of diff because UEFI and strings lol14:18:55
@emilazy:matrix.orgemilyah, so you still have to get a kernel14:18:55
@raitobezarius:matrix.orgraitobezariusyep14:18:59
@raitobezarius:matrix.orgraitobezariusbut the kernel can come from an URL as long as you have the right EFI driver14:19:10
@emilazy:matrix.orgemilythat sort of makes it not as interesting to me I guess – avoiding downloading the entire system on every boot was part of why I was curious about using Nix for this14:19:35
@emilazy:matrix.orgemilycool all the same though14:19:51
@raitobezarius:matrix.orgraitobezariuswe are back to kindof a specialized bootloader like iPXE14:20:32
@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

Show newer messages


Back to Room ListRoom Version: 6