mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
27 lines
446 B
Nix
27 lines
446 B
Nix
{inputs, ...}: {
|
|
config,
|
|
options,
|
|
...
|
|
}: let
|
|
hasConfigLib = options ? lib;
|
|
gensokyo-zone = {
|
|
inherit inputs;
|
|
inherit (inputs.self.lib) tree meta lib;
|
|
};
|
|
in {
|
|
config = {
|
|
${
|
|
if hasConfigLib
|
|
then "lib"
|
|
else null
|
|
} = {
|
|
inherit gensokyo-zone;
|
|
};
|
|
_module.args = {
|
|
gensokyo-zone =
|
|
if hasConfigLib
|
|
then config.lib.gensokyo-zone
|
|
else gensokyo-zone;
|
|
};
|
|
};
|
|
}
|