!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

599 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
15 Oct 2024
@emilazy:matrix.orgemilywas there any progress on https://github.com/NixOS/nixpkgs/issues/343975?07:45:29
@arianvp:matrix.orgArian Can we please change this enableNg flag to something like switch.backend = enum ng|pl ? 09:29:45
@arianvp:matrix.orgArian I have system.switch.enable = false; to make appliance images. Surprised that suddenly I still had switch-to-configuration 09:30:11
@k900:0upti.meK900Good idea 09:30:16
@arianvp:matrix.orgArian ah it does default to what enable is set to so that's good but still it's a bit odd 09:31:20
@emilazy:matrix.orgemily
In reply to @arianvp:matrix.org
Can we please change this enableNg flag to something like switch.backend = enum ng|pl ?
it's only like this for compat
09:31:44
@emilazy:matrix.orgemilythe option will go away anyway09:31:55
@emilazy:matrix.orgemily
In reply to @arianvp:matrix.org
I have system.switch.enable = false; to make appliance images. Surprised that suddenly I still had switch-to-configuration
also yeah this shouldn't happen
09:32:06
@emilazy:matrix.orgemilysee https://github.com/NixOS/nixpkgs/pull/339727#issuecomment-2330897734 for the possible combinations09:33:27
@emilazy:matrix.orgemilybut I expect the perl to go away in 25.0509:33:52
@emilazy:matrix.orgemilyor 25.11 at worst09:33:58
@steveej0:matrix.orgsteveej has anyone had success running nixos (with systemd) in any OCI container runtime recently? with containerd i'm finding that i have to run it with --privileged and still the path pointed to by CREDENTIALS_DIRECTORY doesn't get created for the services in the container 09:36:49
@arianvp:matrix.orgArianit isnt09:50:05
@arianvp:matrix.orgArianI was holding it wrong09:50:10
@arianvp:matrix.orgArianseems the code is correct09:50:13
@arianvp:matrix.orgArian

why do we inject the UKI using an overrideAttrs instead of partition.contents ?

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/image/repart-verity-store.nix#L170

10:44:23
@arianvp:matrix.orgAriani don't think it's needed; right?10:46:21
@antifuchs:asf.computerantifuchsHuh, I had a weird failure state yesterday: resolvectl hung, eventually erroring, timed out connecting. Had to restart systemd-resolved to fix this; that was on a nixos-unstable system where a nixos-rebuild switch had upgraded systemd, did that maybe not effect a restart of the resolved?12:39:34
@jaredbaur:matrix.orgJared Baur @arianvp:matrix.org: I've got a fix for the amazon-init issues you noticed at https://github.com/NixOS/nixpkgs/pull/348668 22:25:52
16 Oct 2024
@msanft:matrix.orgMoritz SanftDid we change anything about TPM-based disk unlock recently? Since a few weeks(?), I now have to enter my passphrase / pin ... twice on boot (once for "Please enter LUKS2 Token PIN", once for "Please enter passphrase for /dev/disk...")06:36:21
@elvishjerricco:matrix.orgElvishJerricco Moritz Sanft: Yes but it shouldn't have had any significant effect: https://github.com/NixOS/nixpkgs/pull/343307 07:11:12
@elvishjerricco:matrix.orgElvishJerriccoShould have just added a touch more ordering07:11:21
@elvishjerricco:matrix.orgElvishJerricco Moritz Sanft: that makes it sound like the TPM2 unlock is failing and it's falling back to another passphrase keyslot or something? 07:13:16
@elvishjerricco:matrix.orgElvishJerriccooh, if you're using lanzaboote, then that tpm2-setup stuff will actually do things07:13:41
@elvishjerricco:matrix.orgElvishJerricco I mean, nothing relevant (at least I'm pretty sure) 07:13:57
@elvishjerricco:matrix.orgElvishJerriccobut it'll create the SRK07:14:03
@elvishjerricco:matrix.orgElvishJerriccobut IIRC the metadata in the key slot informs whether systemd-cryptsetup should use the SRK or not, so an existing LUKS header shouldn't need any changes to continue working07:16:02
@msanft:matrix.orgMoritz Sanft
In reply to@elvishjerricco:matrix.org
Moritz Sanft: that makes it sound like the TPM2 unlock is failing and it's falling back to another passphrase keyslot or something?
Hmm. I assume debug logging would be the only way to find out?
07:17:58
@elvishjerricco:matrix.orgElvishJerricco that would be an easy way, yea. Can be enabled on the specific service with overrideStrategy = "asDropin" and the SYSTEMD_LOG_LEVEL env var 07:18:50
@arianvp:matrix.orgArianMost services support changing log level through systemctl these days07:46:34

Show newer messages


Back to Room ListRoom Version: 6