migrate scion default#715
Conversation
| # NOTE: | ||
| # - Check `projects/models.nix` for a more detailed project structure | ||
| # - Each program/service must have at least one example | ||
| # - Set attributes to `null` to indicate that they're needed, but not available |
There was a problem hiding this comment.
This is just a not for guidance. Please remove it, @khabdrick
| # NOTE: | |
| # - Check `projects/models.nix` for a more detailed project structure | |
| # - Each program/service must have at least one example | |
| # - Set attributes to `null` to indicate that they're needed, but not available |
| "FooBar" | ||
| "FooBar-cli" |
There was a problem hiding this comment.
Search for the project in the NLnet projects page and include the URL handle for the things related to SCION (see triaging template for an example).
| foobar-cli = null; | ||
| }; | ||
|
|
||
| # NOTE: same structure as programs |
There was a problem hiding this comment.
This note means that the structure of nixos.modules.program above needs to be copied here, if the project uses services.
|
@khabdrick The project template has been updated. Is it more clear now? |
|
@eljamm Heeey! |
|
Made some updates @eljamm |
eljamm
left a comment
There was a problem hiding this comment.
Thanks for addressing my comments @khabdrick. Hope you're doing better, now.
| # examples.foobar = { | ||
| # module = ./example.nix; | ||
| # description = ""; | ||
| # tests.basic = ./test.nix; |
| links = { | ||
| build = { | ||
| text = "SCION Documentation"; | ||
| url = "https://docs.scion.org/en/latest/"; | ||
| }; | ||
| build = { | ||
| text = "Build from source"; | ||
| url = "https://github.com/scionproto/scion?tab=readme-ov-file#build-from-sources"; | ||
| }; | ||
| tests = { | ||
| text = "Testing Tutorial"; | ||
| url = "https://docs.scion.org/en/latest/tutorials/deploy.html#tasks-to-perform"; | ||
| }; | ||
| }; |
There was a problem hiding this comment.
I think this might be redundant since they're the same links as nixos.modules.programs. We could just move them to the top-level metadata.links
There was a problem hiding this comment.
When I move them, I can delete from both nixos.modules.programs and nixos.modules.services?
@eljamm
Yes I am, thank you. |
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
|
I have made the updates. |
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
|
@eljamm sorry about so many typos. Didn't even realize. |
There was a problem hiding this comment.
What else is left for this to be completed.
The failing tests need to pass. That's why you need to build this locally first, as the task instructs:
$ nix build .#checks.x86_64-linux.projects/SCION/nixos/examples/basic
Also, please run nix fmt when you're done.
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
|
Please always format the code with |
|
|
eljamm
left a comment
There was a problem hiding this comment.
Nice! You're very very close to the finish line.
| in | ||
| { | ||
| options.programs.scion = { | ||
| enable = lib.mkEnableOption "scion"; |
There was a problem hiding this comment.
Can you follow the new template and add packages from projects-old/SCION-1M here? After you finish, delete that directory and commit your changes.
|
Done |
|
It seems like these packages are not available. |
Co-authored-by: Fedi Jamoussi <Fedi.Jamoussi@protonmail.ch>
eljamm
left a comment
There was a problem hiding this comment.
Looks good. Congrats @khabdrick!

Migrate scion
default.nixto new project folder.fixed #590