Conversation

Jarkko Sakkinen

Next step learning NixOS-in-Podman: manual kernel config :-)

The default NixOS config is not exactly practical (hours of waiting) for this use. Already use my tree.

I also make the build process pick semantic version from Git instead of using fixed version.

#nixos #podman #linux #kernel
1
1
3

Jarkko Sakkinen

Edited 1 hour ago
Experiment 1:

1. curl -o ./kernel.config https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/arch/x86/configs/x86_64_defconfig
2. manualConfig = builtins.readFile ./linux.config;

There's a lot of "full on" NixOS posts on Internet, posts that say how bad NixOS but not really information how to just use it while living normal and mutable life outside of its relevant applications, such as payloads for Linux kernel testing with Rust enabled ;-) That's why I had to spend 48h awake on my terminal, just to get to this point:

https://codeberg.org/jarkko/linux-tpmdd-nixos

It's still flakky, OOM's easily, and not recommend for testing, but I should push some fixes soon. My earlier environment has served me for years, and I hope that this will in long-term substitute it:

https://codeberg.org/jarkko/linux-tpmdd-test

Not that long in Git but I used this to e.g. iterate Intel SGX driver to the mainline. Now it starts to show its age tho and I think NixOS can level up enough for the next decade or so :-) Especially with Rust shenanigans I have high expectations for it.
1
0
0