2023-12-18 20:04:36 +00:00
|
|
|
{ lib, config, ... }:
|
|
|
|
{
|
2021-08-02 19:42:45 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
processedToplevel = lib.mkOption {
|
|
|
|
type = lib.types.raw;
|
|
|
|
};
|
|
|
|
unprocessedNesting = lib.mkOption {
|
|
|
|
type = lib.types.raw;
|
|
|
|
};
|
|
|
|
multiple = lib.mkOption {
|
|
|
|
type = lib.types.raw;
|
|
|
|
};
|
|
|
|
priorities = lib.mkOption {
|
|
|
|
type = lib.types.raw;
|
|
|
|
};
|
2023-12-18 20:04:36 +00:00
|
|
|
unprocessedNestingEvaluates = lib.mkOption {
|
|
|
|
default = builtins.tryEval config.unprocessedNesting;
|
|
|
|
};
|
2021-08-02 19:42:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
processedToplevel = lib.mkIf true 10;
|
|
|
|
unprocessedNesting.foo = throw "foo";
|
|
|
|
multiple = lib.mkMerge [
|
|
|
|
"foo"
|
|
|
|
"foo"
|
|
|
|
];
|
|
|
|
priorities = lib.mkMerge [
|
|
|
|
"foo"
|
|
|
|
(lib.mkForce "bar")
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|