b81b3ad1b0
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. |
||
---|---|---|
.. | ||
alias-with-priority.nix | ||
declare-coerced-value-unsound.nix | ||
declare-coerced-value.nix | ||
declare-enable.nix | ||
declare-int-between-value.nix | ||
declare-int-positive-value.nix | ||
declare-int-unsigned-value.nix | ||
declare-loaOfSub-any-enable.nix | ||
default.nix | ||
define-_module-args-custom.nix | ||
define-enable-force.nix | ||
define-enable-with-custom-arg.nix | ||
define-enable.nix | ||
define-force-enable.nix | ||
define-force-loaOfSub-foo-enable.nix | ||
define-if-loaOfSub-foo-enable.nix | ||
define-loaOfSub-bar-enable.nix | ||
define-loaOfSub-bar.nix | ||
define-loaOfSub-foo-enable-force.nix | ||
define-loaOfSub-foo-enable-if.nix | ||
define-loaOfSub-foo-enable.nix | ||
define-loaOfSub-foo-force-enable.nix | ||
define-loaOfSub-foo-if-enable.nix | ||
define-loaOfSub-foo.nix | ||
define-loaOfSub-force-foo-enable.nix | ||
define-loaOfSub-if-foo-enable.nix | ||
define-module-check.nix | ||
define-value-int-negative.nix | ||
define-value-int-positive.nix | ||
define-value-int-zero.nix | ||
define-value-list.nix | ||
define-value-string-arbitrary.nix | ||
define-value-string-bigint.nix | ||
define-value-string.nix | ||
disable-declare-enable.nix | ||
disable-define-enable.nix | ||
disable-enable-modules.nix | ||
import-custom-arg.nix | ||
loaOf-with-long-list.nix | ||
loaOf-with-many-list-merges.nix |