2024-05-01 22:14:04 +00:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
|
|
|
inherit (lib) types;
|
2024-06-30 08:16:52 +00:00
|
|
|
in
|
|
|
|
{
|
2024-05-01 22:14:04 +00:00
|
|
|
options = {
|
2024-06-30 08:16:52 +00:00
|
|
|
fun = lib.mkOption { type = types.functionTo types.str; };
|
2024-05-01 22:14:04 +00:00
|
|
|
|
|
|
|
result = lib.mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = config.fun "input";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config.fun = input: "input is ${input}";
|
|
|
|
}
|