Compare commits
No commits in common. "6c7f335fbde5b6f1931d79d287bf03ee642ba7f5" and "02ded5d4f0d53eaeb68f1b68469926fd21acc6db" have entirely different histories.
6c7f335fbd
...
02ded5d4f0
2 changed files with 8 additions and 17 deletions
3
TODO.md
3
TODO.md
|
|
@ -1,7 +1,4 @@
|
||||||
## 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,22 +48,16 @@ in
|
||||||
class = "snowflake";
|
class = "snowflake";
|
||||||
# TODO: abort if inputs contains reserved names
|
# TODO: abort if inputs contains reserved names
|
||||||
specialArgs =
|
specialArgs =
|
||||||
(flakeInputs
|
flakeInputs
|
||||||
// {
|
// {
|
||||||
inherit systems root;
|
inherit root;
|
||||||
inherit (this) snow;
|
inherit systems;
|
||||||
|
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;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -92,7 +86,7 @@ in
|
||||||
|
|
||||||
userArgs = nodes.args // node.args;
|
userArgs = nodes.args // node.args;
|
||||||
ceruleanArgs = {
|
ceruleanArgs = {
|
||||||
inherit systems root base nodes node;
|
inherit systems root base node;
|
||||||
inherit (node) system;
|
inherit (node) system;
|
||||||
inherit (this) snow;
|
inherit (this) snow;
|
||||||
hostname = name;
|
hostname = name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue