modules: Extract mkAliasDefinition from the rename.nix NixOS module.

This commit is contained in:
Nicolas B. Pierron
2014-12-22 22:38:38 +01:00
parent 4e558732e7
commit d7f29acd48
2 changed files with 27 additions and 2 deletions

View File

@@ -55,8 +55,8 @@ let
apply = x: use (toOf config);
inherit visible;
});
}
{ config = setTo (mkMerge (if (fromOf options).isDefined then [ (define (mkMerge (fromOf options).definitions)) ] else []));
config = setTo (mkAliasAndWrapDefinitions define (fromOf options));
}
];