!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

88 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5130 Servers

Load older messages


SenderMessageTime
8 May 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh, no23:20:06
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We won't need to change the nix store path. /sysusr is meant to be seen as a chroot root 23:20:53
@nikstur:matrix.org@nikstur:matrix.orgAhh right23:22:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We'd just have to make /sysusr/usr somehow a mountpoint pointing to the same device as /sysusr/nix/store, which I suppose means making it a bind mount to something 23:22:33
@nikstur:matrix.org@nikstur:matrix.orgI'll hack the device option (number 3) into the PR so that it falls back to number 2 when no device is specified. 23:22:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea that's a good start23:23:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd likely all we'll really need23:23:11
@nikstur:matrix.org@nikstur:matrix.orgYes I agree23:24:39
@nikstur:matrix.org@nikstur:matrix.orgI'll try to write a test for creating a root partition too23:24:43
@arianvp:matrix.orgArianThat's awesome!23:31:40
9 May 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org nikstur: Heh, I dunno if you were planning on doing the other suggestions in a separate PR, but #230777 was merged :P 11:07:09
@nikstur:matrix.org@nikstur:matrix.orgHaha that's ok I'll just do a follow up11:07:49
17 May 2023
@mberndt:matrix.org@mberndt:matrix.org ElvishJerricco
I've reworked the Stratis root fs support. nixos-generate-config now does the right thing with stratis volumes, and the stratisroot module will make sure that all pools required to boot the machine are initialized in the initramfs. Could you take another look?
https://github.com/NixOS/nixpkgs/pull/229767
03:07:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org mberndt: I'll take a look soon. Been feeling a little ill so I've been avoiding nixpkgs work for a couple of days 13:34:40
@mberndt:matrix.org@mberndt:matrix.org
In reply to @elvishjerricco:matrix.org
mberndt: I'll take a look soon. Been feeling a little ill so I've been avoiding nixpkgs work for a couple of days
Oh dear, I hope you get better soon! This isn't in any way urgent, so take whatever time you need
17:29:33
19 May 2023
@nikstur:matrix.org@nikstur:matrix.org ElvishJerricco: isn't the stage 1 activation initrd-nixos-activation.service and the stage 2 activation nixos-activation.service? 13:47:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.org nikstur: .... yep. Got those names mixed up 13:47:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyou can tell I'm having a foggy week :P13:47:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but nixos-activation.service is a user service thing, not a system service thing 13:48:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot relevant to repart at all13:48:54
@nikstur:matrix.org@nikstur:matrix.orgAh ok13:48:58
@nikstur:matrix.org@nikstur:matrix.org Is /etc set up in initrd-nixos-activation.service? 13:49:17
@nikstur:matrix.org@nikstur:matrix.org or in nixos-activation.service 13:49:35
@nikstur:matrix.org@nikstur:matrix.org
In reply to @elvishjerricco:matrix.org
you can tell I'm having a foggy week :P
No worries :D
13:49:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org nikstur: nixos-activation.service is started for each user when that user logs in. Each user has their own systemd instance that runs with their permissions, and that starts user units like nixos-activation.service 13:52:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.org initrd-nixos-activation.service is a system service in stage 1 that runs the generation's activation script, which does things like setup /etc 13:52:57
@nikstur:matrix.org@nikstur:matrix.orgRight thanks13:53:46
@nikstur:matrix.org@nikstur:matrix.org I see how it doesnt make sense to order after nixos-activation.service then :D 13:56:23
@nikstur:matrix.org@nikstur:matrix.orghttps://github.com/NixOS/nixpkgs/pull/232533 should be good to go then13:56:45
@charles:computer.surgeryCharles ⚡️ joined the room.22:28:36

Show newer messages


Back to Room ListRoom Version: 6