mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
htop: fix deprecation warnings (#2026)
Previous patch on deprecation warnings broke use of old options due to function call with too many arguments. This fixes the arguments so deprecation warnings are properly traced while preserving old configuration options.
This commit is contained in:
parent
b449cb77b1
commit
3d18912f5a
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ in {
|
|||
warn' = warn
|
||||
"htop: programs.htop.${optionKey} is deprecated; please is programs.htop.settings.${settingsKey} instead";
|
||||
in if !isNull optionValue then
|
||||
warn' settingsKey optionKey optionValue
|
||||
warn' optionValue
|
||||
else if hasAttr settingsKey cfg.settings then
|
||||
cfg.settings.${settingsKey}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue