minimal working state
This commit is contained in:
parent
855430ef16
commit
6c1a0a5d33
26 changed files with 331 additions and 326 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
self,
|
||||
this,
|
||||
inputs,
|
||||
systems,
|
||||
|
|
@ -16,14 +17,20 @@
|
|||
inherit (inputs.nixpkgs) lib;
|
||||
in {
|
||||
# snow.flake
|
||||
# XXX: TODO: stop taking in root as parameter (maybe take self instead?)
|
||||
flake = flakeInputs: root: let
|
||||
snowflake = lib.evalModules {
|
||||
class = "snowflake";
|
||||
specialArgs = let
|
||||
reservedSpecialArgs = {
|
||||
inherit (this) snow;
|
||||
# inherit (this) snow;
|
||||
snow = this;
|
||||
inherit systems root;
|
||||
inputs = flakeInputs;
|
||||
|
||||
_snowFlake = {
|
||||
inherit self inputs;
|
||||
};
|
||||
};
|
||||
|
||||
warnIfReserved = let
|
||||
|
|
@ -50,7 +57,10 @@ in {
|
|||
flakeInputs // reservedSpecialArgs;
|
||||
|
||||
modules = [
|
||||
./module.nix
|
||||
./nodes
|
||||
./modules
|
||||
./outputs
|
||||
(this.lib.findImport /${root}/snow)
|
||||
];
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue