mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
24 lines
411 B
Nix
24 lines
411 B
Nix
{inputs, ...}: {
|
|
config,
|
|
options,
|
|
...
|
|
}: let
|
|
hasConfigLib = options ? lib;
|
|
gensokyo-zone = inputs.self.lib.gensokyo-zone // {};
|
|
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;
|
|
};
|
|
};
|
|
}
|