11.stylix/stylix/icons.nix
NAHO fbe1dab778
stylix: apply stylix.iconTheme option rename to all sub-options (#1744)
Link: https://github.com/nix-community/stylix/pull/1744

Fixes: 1021b7d732 ("stylix: simplify API by renaming stylix.iconTheme option to stylix.icons")

Reviewed-by: awwpotato <awwpotato@voidq.com>
Tested-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-23 18:48:02 +00:00

80 lines
1.5 KiB
Nix

{ lib, ... }:
{
imports = [
(lib.mkRenamedOptionModuleWith {
from = [
"stylix"
"iconTheme"
"dark"
];
sinceRelease = 2511;
to = [
"stylix"
"icons"
"dark"
];
})
(lib.mkRenamedOptionModuleWith {
from = [
"stylix"
"iconTheme"
"enable"
];
sinceRelease = 2511;
to = [
"stylix"
"icons"
"enable"
];
})
(lib.mkRenamedOptionModuleWith {
from = [
"stylix"
"iconTheme"
"light"
];
sinceRelease = 2511;
to = [
"stylix"
"icons"
"light"
];
})
(lib.mkRenamedOptionModuleWith {
from = [
"stylix"
"iconTheme"
"package"
];
sinceRelease = 2511;
to = [
"stylix"
"icons"
"package"
];
})
];
options.stylix.icons = {
enable = lib.mkOption {
description = "enable/disable icon theming.";
type = lib.types.bool;
default = false;
};
package = lib.mkOption {
description = "Package providing the icon theme.";
type = lib.types.nullOr lib.types.package;
default = null;
};
light = lib.mkOption {
description = "Light icon theme name.";
type = lib.types.nullOr lib.types.str;
default = null;
};
dark = lib.mkOption {
description = "Dark icon theme name.";
type = lib.types.nullOr lib.types.str;
default = null;
};
};
}