Hello NixOS community,
As part of our ongoing efforts to improve NixOS early code (initrd) with various contributors (systemd team, @ElvishJerricco notably!), we are considering the removal of the “scripted initrd networking” feature. This feature is currently deemed unmaintained and can already be effectively replaced by the “networkd initrd” feature utilizing the new systemd initrd functionality.
The primary motivation behind this proposed change is to enhance the overall maintainability and offer a modern “better by default” solution for networking in initrds. We understand that changes like these can impact users, and we want to make the transition as smooth as possible for everyone involved.
Before proceeding, we would like to gather valuable feedback from the community to ensure that the upcoming changes align with your needs and use cases. Your input is crucial in helping us draft comprehensive migration documents and provide the necessary resources to guide users through this transition.
What we’re seeking from you:
-
Use Cases: Please share your specific use cases where you currently rely on the “scripted initrd networking” feature. Understanding how you use this functionality will enable us to address potential challenges or missing features and create tailored migration resources.
-
Concerns: If you have any concerns about the removal of this feature, please voice them. We want to address any potential issues or hurdles that may arise during the transition.
-
Suggestions: Feel free to provide any suggestions or alternative approaches that you believe could enhance the migration process or offer improved solutions.
See nixos: drop scripted initrd networking by RaitoBezarius · Pull Request #287043 · NixOS/nixpkgs · GitHub for the draft removal PR.
About the systemd stage 1
@hexa drove work on bringing documentation on networkd in systemd-networkd - NixOS Wiki and most of those are reusable for your migration and can give you ideas on how to use this.
Most of the stage 1 options with networkd are exposed here: NixOS Search.
You can look in our NixOS tests to find some examples.