nixpkgs/lib/tests
(cdep)illabout b81b3ad1b0
lib/modules: Add a function to create an option alias that respects the priority
This commit adds a function `mkAliasOptionModuleWithPriority`.  This
function will make an alias to an existing option and copy over the
priority.

This functionality is needed for PRs like #53041.  In that case
`nixos-generate-config` added an option to `hardware-configuration.nix`
with `mkDefault`.  That option was then changed and an alias created for
the old name.

The end user should be able to set the non-alias option in their
`configuration.nix` and have everything work correctly.  Without this
function, the priority for the option won't be copied over correctly
and the end-user will get a message saying they have the same option
set to two different values.
2019-01-04 18:35:10 +09:00
..
modules lib/modules: Add a function to create an option alias that respects the priority 2019-01-04 18:35:10 +09:00
check-eval.nix lib/tests: Add check-eval.nix to run simple tests. 2018-03-04 06:28:49 -05:00
misc.nix Remove composableDerivation, closes #18763 2018-12-30 12:33:45 +00:00
modules.sh Add a failing test for mkAliasOptionModule. 2019-01-04 18:34:09 +09:00
release.nix Remove obsolete /nix/var/nix/{manifests,channel-cache} 2018-03-20 18:26:13 +01:00
systems.nix tests/systems.nix: fix tests 2018-10-18 14:12:49 -05:00