Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
432 B · 27 lines
Nix
12345678910111213141516171819202122232425262728{ lib, config, ... }:let inherit (lib) types;in{ options = { fun = lib.mkOption { type = types.functionTo (types.listOf types.str); };
result = lib.mkOption { type = types.str; default = toString ( config.fun { a = "a"; b = "b"; c = "c"; } ); }; };
config.fun = lib.mkMerge [ (input: [ input.a ]) (input: [ input.b ]) ];}