l krops: make source.nix overrideable
This commit is contained in:
parent
66816ee636
commit
539f4f09fc
@ -5,11 +5,6 @@
|
|||||||
pkgs
|
pkgs
|
||||||
;
|
;
|
||||||
|
|
||||||
host-source = if lib.pathExists (./. + "/1systems/${name}/source.nix") then
|
|
||||||
import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs; }
|
|
||||||
else
|
|
||||||
{}
|
|
||||||
;
|
|
||||||
|
|
||||||
source = { test }: lib.evalSource ([
|
source = { test }: lib.evalSource ([
|
||||||
(krebs-source { test = test; })
|
(krebs-source { test = test; })
|
||||||
@ -24,7 +19,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
] ++ (lib.optional (! test) host-source));
|
(if lib.pathExists (./. + "/1systems/${name}/source.nix") then
|
||||||
|
import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs test; }
|
||||||
|
else
|
||||||
|
{}
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user