1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/lib
(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
..
systems Initial attempt to restore Android NDK cross building 2018-12-18 22:58:12 +01:00
tests lib/modules: Add a function to create an option alias that respects the priority 2019-01-04 18:35:10 +09:00
asserts.nix
attrsets.nix
customisation.nix
debug.nix
default.nix lib/modules: Add a function to create an option alias that respects the priority 2019-01-04 18:35:10 +09:00
deprecated.nix Remove composableDerivation, closes #18763 2018-12-30 12:33:45 +00:00
fetchers.nix
filesystem.nix
fixed-points.nix
generators.nix
kernel.nix
licenses.nix licenses: update SPDX IDs (#52711) 2018-12-24 23:29:58 +00:00
lists.nix
meta.nix
minver.nix
modules.nix lib/modules: Add a function to create an option alias that respects the priority 2019-01-04 18:35:10 +09:00
options.nix
sources.nix
strings-with-deps.nix
strings.nix
trivial.nix
types.nix
versions.nix
zip-int-bits.nix