at 25.11-pre 478 B view raw
1{ lib, config, ... }: 2{ 3 imports = [ 4 (lib.doRename { 5 from = [ 6 "a" 7 "b" 8 ]; 9 to = [ 10 "c" 11 "d" 12 "e" 13 ]; 14 warn = true; 15 use = x: x; 16 visible = true; 17 }) 18 ]; 19 options = { 20 warnings = lib.mkOption { type = lib.types.listOf lib.types.str; }; 21 c.d.e = lib.mkOption { }; 22 result = lib.mkOption { }; 23 }; 24 config = { 25 a.b = 1234; 26 result = lib.concatStringsSep "%" config.warnings; 27 }; 28}