treewide: declare end-of-life for deprecated options

Fixes: 6858d08ed0 ("treewide: add soft deprecation dates (#506)")
Link: https://github.com/danth/stylix/pull/514
This commit is contained in:
NAHO 2024-08-20 15:56:54 +02:00
parent 94d70292d0
commit dba4bd2d89
No known key found for this signature in database
GPG key ID: 229CB671D09B95F5
2 changed files with 37 additions and 55 deletions

View file

@ -14,15 +14,28 @@
}; };
imports = [ imports = [
# Added: 2024-08-06 (
(lib.mkRenamedOptionModule lib.mkRenamedOptionModuleWith {
[ "stylix" "targets" "nixvim" "transparent_bg" "main" ] from = [ "stylix" "targets" "nixvim" "transparent_bg" "main" ];
[ "stylix" "targets" "nixvim" "transparentBackground" "main" ]) sinceRelease = 2411;
to = [ "stylix" "targets" "nixvim" "transparentBackground" "main" ];
}
)
# Added: 2024-08-06 (
(lib.mkRenamedOptionModule lib.mkRenamedOptionModuleWith {
[ "stylix" "targets" "nixvim" "transparent_bg" "sign_column" ] from = [ "stylix" "targets" "nixvim" "transparent_bg" "sign_column" ];
[ "stylix" "targets" "nixvim" "transparentBackground" "signColumn" ]) sinceRelease = 2411;
to = [
"stylix"
"targets"
"nixvim"
"transparentBackground"
"signColumn"
];
}
)
]; ];
config = lib.mkIf (config.stylix.enable && config.stylix.targets.nixvim.enable && (config.programs ? nixvim)) ( config = lib.mkIf (config.stylix.enable && config.stylix.targets.nixvim.enable && (config.programs ? nixvim)) (

View file

@ -23,53 +23,22 @@ let
in { in {
# TODO link to doc on how to do instead # TODO link to doc on how to do instead
imports = [ imports = [
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base00" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base00" ] "Using stylix.palette to override scheme is not supported anymore") (lib.mkRemovedOptionModule [ "stylix" "palette" "base01" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base02" ] "Using stylix.palette to override scheme is not supported since 23.05")
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base03" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base01" ] "Using stylix.palette to override scheme is not supported anymore") (lib.mkRemovedOptionModule [ "stylix" "palette" "base04" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base05" ] "Using stylix.palette to override scheme is not supported since 23.05")
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base06" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base02" ] "Using stylix.palette to override scheme is not supported anymore") (lib.mkRemovedOptionModule [ "stylix" "palette" "base07" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base08" ] "Using stylix.palette to override scheme is not supported since 23.05")
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base09" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base03" ] "Using stylix.palette to override scheme is not supported anymore") (lib.mkRemovedOptionModule [ "stylix" "palette" "base0A" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0B" ] "Using stylix.palette to override scheme is not supported since 23.05")
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base0C" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base04" ] "Using stylix.palette to override scheme is not supported anymore") (lib.mkRemovedOptionModule [ "stylix" "palette" "base0D" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0E" ] "Using stylix.palette to override scheme is not supported since 23.05")
# Added: 2023-02-02 (lib.mkRemovedOptionModule [ "stylix" "palette" "base0F" ] "Using stylix.palette to override scheme is not supported since 23.05")
(lib.mkRemovedOptionModule [ "stylix" "palette" "base05" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base06" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base07" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base08" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base09" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0A" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0B" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0C" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0D" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0E" ] "Using stylix.palette to override scheme is not supported anymore")
# Added: 2023-02-02
(lib.mkRemovedOptionModule [ "stylix" "palette" "base0F" ] "Using stylix.palette to override scheme is not supported anymore")
]; ];
options.stylix = { options.stylix = {