11.stylix/stylix/hm/default.nix
awwpotato eb19696b18
stylix: add overlay module (#1048)
Closes: https://github.com/danth/stylix/issues/865
Link: https://github.com/danth/stylix/pull/1048

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-31 17:36:36 +00:00

53 lines
1.5 KiB
Nix

inputs:
{
lib,
config,
...
}:
# Imported modules which define new options must use an absolute path based
# on ${inputs.self}, otherwise those options will not appear in the generated
# documentation.
let
autoload = import ../autoload.nix { inherit lib inputs; } "hm";
in
{
imports = [
"${inputs.self}/stylix/cursor.nix"
"${inputs.self}/stylix/fonts.nix"
"${inputs.self}/stylix/hm/cursor.nix"
"${inputs.self}/stylix/hm/fonts.nix"
"${inputs.self}/stylix/hm/icon.nix"
"${inputs.self}/stylix/hm/palette.nix"
"${inputs.self}/stylix/icon.nix"
"${inputs.self}/stylix/opacity.nix"
"${inputs.self}/stylix/palette.nix"
"${inputs.self}/stylix/pixel.nix"
"${inputs.self}/stylix/target.nix"
"${inputs.self}/stylix/release.nix"
(import "${inputs.self}/stylix/overlays.nix" inputs)
] ++ autoload;
config.warnings =
lib.mkIf
(
config.stylix.enable
&& config.stylix.enableReleaseChecks
&& (config.stylix.release != config.home.version.release)
)
[
''
You are using different Stylix and Home Manager versions. This is
likely to cause errors and unexpected behavior. It is highly
recommended that you use a version of Stylix that matches your chosen
version of Home Manager.
If you are willing to accept the risks that come with using
mismatched versions, you may disable this warning by adding
stylix.enableReleaseChecks = false;
to your configuration.
''
];
}