expand functionality#26
Conversation
|
Hey @unazikx, thanks for this contribution. Could you provide a description or some context on the changes you're proposing? Also could you run the files you've changed through |
|
i formatted it via nixfmt (in helix as formatter for .nix files) commits are gives hjem modules and hjem generator, and recursive modules load, example: without recursive option there will be and with recursive option we get |
|
as example i can give u my testing repo very very shizo |
arnarg
left a comment
There was a problem hiding this comment.
Since you changed function parameters from { config }: to multi-line I assumed you were using another formatter than nixfmt but I have tested it and it seems it allows for both. I'd however like to keep the compact version for a single attribute parameters like { config }:, please change that.
Otherwise I have some minor changes requested.
One thought regarding the recursive module loader, would it make sense to build the resulting attribute set recursively too? so nilla.modules.nixos.common.hjem instead of just nilla.modules.nixos.hjem from your example?
Co-authored-by: Arnar <arnar@codedbearder.com>
Co-authored-by: Arnar <arnar@codedbearder.com>
Co-authored-by: Arnar <arnar@codedbearder.com>
Co-authored-by: Arnar <arnar@codedbearder.com>
im frkn stupid and cant understood ur thoughts |
|
Oh come on now, maybe I didn't articulate my thoughts well enough :) What I mean is that in your example it produces: {
amd-cpu = ./modules/nixos/hardware/amd-cpu/default.nix;
amd-gpu = ./modules/nixos/hardware/amd-gpu/default.nix;
hjem = ./modules/nixos/common/hjem/default.nix;
}But maybe it should produce the following instead: {
common = {
hjem = ./modules/nixos/common/hjem/default.nix;
};
hardware = {
amd-cpu = ./modules/nixos/hardware/amd-cpu/default.nix;
amd-gpu = ./modules/nixos/hardware/amd-gpu/default.nix;
};
} |
|
uh, yeah it should be right |
90726f6 to
d170a8a
Compare
|
tf im stupid o'not? |
No description provided.