minimal working state

This commit is contained in:
do butterflies cry? 2026-03-17 20:37:59 +10:00
parent 855430ef16
commit 6c1a0a5d33
Signed by: cry
GPG key ID: F68745A836CA0412
26 changed files with 331 additions and 326 deletions

View file

@ -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