at 23.11-beta 386 B view raw
1{ lib, config, ... }: { 2 imports = [ 3 (lib.doRename { from = ["a" "b"]; to = ["c" "d" "e"]; warn = true; use = x: x; visible = true; }) 4 ]; 5 options = { 6 warnings = lib.mkOption { type = lib.types.listOf lib.types.str; }; 7 c.d.e = lib.mkOption {}; 8 result = lib.mkOption {}; 9 }; 10 config = { 11 a.b = 1234; 12 result = lib.concatStringsSep "%" config.warnings; 13 }; 14}