Fix issue #5: Refactor default.nix into modular files - #14
Conversation
|
|
||
| # Default system closure | ||
| # This is the system that gets installed by default automatically without any user customization. | ||
| { securix, defaultEdition }: |
There was a problem hiding this comment.
Make it take {, ...} so that we do not have to worry about how many args we pass to it.
rlahfa-dinum
left a comment
There was a problem hiding this comment.
Looks good to me, can you add shell.nix at the top-level and ensure that each subfiles have { , ... } to avoid strict argument passing errors?
|
Got it! Fixed that missing ellipsis (and checked the other modules had it already) |
No, I meant that it should still be possible to enter into the development shell of the project by having a development shell at the root of the Git repository. You can keep the name as-is, but it would be good to have a top-level shell that forwards to |
|
Ok so then the PR can merged since calling And So calling |
|
It seems like to me that the CI paths might have not been fully adjusted, can you take a look? |
|
My understanding is that the CI path problem is preexisting to my PR (since the same issue can be found here : https://github.com/cloud-gouv/bureautix-example/actions/runs/27912405996/job/82591697240) |
That's fair, can you use rebase instead of merge commits for the PR? Once you are done, we can merge, thanks. |
Split USB and netboot installers into a new 'installers' directory. Add myself as a contributor.
Move 'terminals' and 'toplevelRegistry' into a new 'registry' directory.
Move ci code and shell into 'dev' directory.
Move defaultSystem into 'lib' directory.
dbd59c8 to
ad27863
Compare
Fixes #5
What changed?
default.nixinto:installers/default.nix
installers/netboot.nix
installers/usb.nix
registry/default.nix
dev/ci.nix
dev/default.nix
dev/shell.nix
lib/default-system.nix
Motivation
This refactor prepares the ground for working on features without cluttering
default.nix.How to test?
nix-instantiate -A usb-installerproduces the same hash. Same goes for 'toplevelRegistry'.nix-instantiate -A net-installerproduces the same error before and after (that could lead to the oppening of a separate issue)nix-instantiate -A shellproduces a different hash but this is because ci usessrc = ../.so any change in the code base actually changes the hash here.