nixpkgs/lib/tests/modules/doRename-basic.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
312 B
Nix
Raw Normal View History

{ lib, ... }:
{
2022-11-03 13:11:04 +01:00
imports = [
(lib.doRename {
from = [
"a"
"b"
];
to = [
"c"
"d"
"e"
];
warn = true;
use = x: x;
visible = true;
})
2022-11-03 13:11:04 +01:00
];
options = {
c.d.e = lib.mkOption { };
2022-11-03 13:11:04 +01:00
};
config = {
a.b = 1234;
};
}