Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/yggdrasil: change config priority, persistentKeys #86778
Favor the configuration in "configFile" over "config" to allow
Add a "persistentKeys" option to generate keys and addresses that
Motivation for this change
The Yggdrasil module should support persistent addressing without manually generating keys.
As for changes the priority of configuration values between the configuration in the nix store and mutable configuration, I thought it was more intuitive to favor the mutable (though use of mutable configuration is not encouraged). I don't have a strong opinion on this and I can change it back if its is an issue.
Favor the configuration in "configFile" over "config" to allow "configFile" to override "config" without a system rebuild. Add a "persistentKeys" option to generate keys and addresses that persist across service restarts. This is useful for self-configuring boot media.