Patched systemd version?

I’m hitting a bug in systemd-networkd, and need to build a custom version to get IPv6 prefix delegation working.

Could someone please point me at a starting point for how I can build new systemd to run on nixos ?

Provide an appropriately overriden version to systemd.package.

https://search.nixos.org/options?channel=21.11&show=systemd.package&from=0&size=50&sort=relevance&type=packages&query=systemd

Guess what I’m trying to ask is how to create such an override version…?

You’ll want to use the overrideAttrs function like so:

systemd.package = pkgs.systemd.overrideAttrs (oldAttrs: {
  foo = bar;
})

You can find some examples at the wiki here: Overlays - NixOS Wiki.

I was sure you were pulling my leg here, but wow – this looks surprisingly simple. Thanks!

3 Likes

If still stuck feel free to drop by in https://matrix.to/#/#systemd:nixos.org