Compare commits

..

2 commits

Author SHA1 Message Date
6c7f335fbd
features for v0.2.6-alpha 2026-03-08 17:14:06 +10:00
902f9d7508
provide systems and snow as flake inputs 2026-03-08 17:13:37 +10:00
2 changed files with 17 additions and 8 deletions

View file

@ -1,4 +1,7 @@
## Next ## Next
- [ ] formalize how the snow flake system compiles outputs, this would remove the need for `mapNodes`
- [ ] groups should allow you to set node configuration defaults
- [ ] add `options.experimental` for snowflake - [ ] add `options.experimental` for snowflake
- [ ] add `legacyImports` support - [ ] add `legacyImports` support

View file

@ -48,16 +48,22 @@ in
class = "snowflake"; class = "snowflake";
# TODO: abort if inputs contains reserved names # TODO: abort if inputs contains reserved names
specialArgs = specialArgs =
flakeInputs (flakeInputs
// { // {
inherit root; inherit systems root;
inherit systems; inherit (this) snow;
inherit (this) snow; # please don't be infinite recursion... inputs = flakeInputs;
inputs = flakeInputs; })
}; |> (x: builtins.removeAttrs x ["self" "nodes"]);
modules = [ modules = [
./module.nix ./module.nix
({config, ...}: {
_module.args = {
self = config;
nodes = config.nodes.nodes;
};
})
]; ];
}; };
@ -86,7 +92,7 @@ in
userArgs = nodes.args // node.args; userArgs = nodes.args // node.args;
ceruleanArgs = { ceruleanArgs = {
inherit systems root base node; inherit systems root base nodes node;
inherit (node) system; inherit (node) system;
inherit (this) snow; inherit (this) snow;
hostname = name; hostname = name;