mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
infat: use deprecation warning helper
This commit is contained in:
@@ -117,11 +117,17 @@ in
|
||||
(lib.hm.assertions.assertPlatform "programs.infat" pkgs lib.platforms.darwin)
|
||||
];
|
||||
|
||||
warnings = lib.optional cfg.autoActivate._legacyBoolean ''
|
||||
Using `programs.infat.autoActivate` as a Boolean is deprecated and will be
|
||||
removed in a future release. Please use `programs.infat.autoActivate.enable`
|
||||
instead.
|
||||
'';
|
||||
warnings = lib.optional cfg.autoActivate._legacyBoolean (
|
||||
lib.hm.deprecations.mkDeprecatedOptionValueWarning {
|
||||
option = [
|
||||
"programs"
|
||||
"infat"
|
||||
"autoActivate"
|
||||
];
|
||||
old = "a Boolean";
|
||||
replacement = "`programs.infat.autoActivate.enable`";
|
||||
}
|
||||
);
|
||||
|
||||
home = {
|
||||
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
@@ -15,8 +15,7 @@ _:
|
||||
asserts.warnings.expected = [
|
||||
''
|
||||
Using `programs.infat.autoActivate` as a Boolean is deprecated and will be
|
||||
removed in a future release. Please use `programs.infat.autoActivate.enable`
|
||||
instead.
|
||||
removed in a future release. Please use `programs.infat.autoActivate.enable` instead.
|
||||
''
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user