developer: add a developer profile example#6
Open
rlahfa-dinum wants to merge 1 commit into
Open
Conversation
|
|
||
| imports = [ | ||
| # This allows a developer to spawn his own virtual machines and do his own things. | ||
| ./virtualisation.nix |
Contributor
There was a problem hiding this comment.
si je veux importer plusieurs fichiers pour faire la config dev, je vais devoir faire "config = mkIf config.bureautix.developer.enable {" dans chaque fichier ?
Contributor
Author
There was a problem hiding this comment.
Oui, il faudra faire ça dans chaque fichier, il n'est pas possible d'importer conditionnellement des fichiers dans le module system.
Si on veut faire ça, on doit exposer un "méta flag" développeur et ça complexifera d'autres choses.
Signed-off-by: Ryan Lahfa <ryan.lahfa@numerique.gouv.fr>
ec3807e to
b82ecc4
Compare
Contributor
Author
|
@jdauphant-dinum Changement requis, fait, je te laisse me dire si ça te convient. |
plegrand-dinum
approved these changes
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds an example on how to use the developer profile.
The rationale for not pursuing an approach by importing
developer/as needed is the following: the user inventory file has special requirements due to limitations in Sécurix's code (that can be lifted in exchange of more complexity inside the code). These requirements prevent us to write something like:which would have been an idiomatic way to some extent to do it.
Instead, we pick the path of least resistance (and also very simple to reason about at scale): a developer profile is always imported, disabled by default and gated behind the module system. User inventories can turn on the flag to become developers, this is what is done.