Compare commits
2 commits
02ded5d4f0
...
6c7f335fbd
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c7f335fbd | |||
| 902f9d7508 |
2 changed files with 17 additions and 8 deletions
3
TODO.md
3
TODO.md
|
|
@ -1,4 +1,7 @@
|
|||
## 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 `legacyImports` support
|
||||
|
||||
|
|
|
|||
|
|
@ -48,16 +48,22 @@ in
|
|||
class = "snowflake";
|
||||
# TODO: abort if inputs contains reserved names
|
||||
specialArgs =
|
||||
flakeInputs
|
||||
// {
|
||||
inherit root;
|
||||
inherit systems;
|
||||
inherit (this) snow; # please don't be infinite recursion...
|
||||
inputs = flakeInputs;
|
||||
};
|
||||
(flakeInputs
|
||||
// {
|
||||
inherit systems root;
|
||||
inherit (this) snow;
|
||||
inputs = flakeInputs;
|
||||
})
|
||||
|> (x: builtins.removeAttrs x ["self" "nodes"]);
|
||||
|
||||
modules = [
|
||||
./module.nix
|
||||
({config, ...}: {
|
||||
_module.args = {
|
||||
self = config;
|
||||
nodes = config.nodes.nodes;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -86,7 +92,7 @@ in
|
|||
|
||||
userArgs = nodes.args // node.args;
|
||||
ceruleanArgs = {
|
||||
inherit systems root base node;
|
||||
inherit systems root base nodes node;
|
||||
inherit (node) system;
|
||||
inherit (this) snow;
|
||||
hostname = name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue