11.stylix/flake/deprecation/default.nix
sntx d683e35fa5
stylix: use lib.warn instead of builtins.warn (#1676)
Link: https://github.com/nix-community/stylix/pull/1676
Closes: https://github.com/nix-community/stylix/issues/1669

Co-authored-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-07-14 01:25:17 +02:00

38 lines
996 B
Nix

{
lib,
self,
...
}:
{
imports = [
./per-system-option.nix
];
# NOTE: the `flake` submodule has a `lazyAttrsOf` freeform type.
#
# This means a `mkIf false` definition will not omit the attr, because
# `lazyAttrsOf` adds an "empty value" stub throwing "used but not defined".
#
# Therefore, instead of doing `flake.foo = mkIf` you should do `flake = mkIf (…) { foo = …; }`.
# If you need multiple definitions with different conditions, use `flake = mkMerge [ … ]`.
# Drop this alias after 26.05
flake = lib.mkIf (!lib.oldestSupportedReleaseIsAtLeast 2605) {
homeManagerModules = lib.warn "stylix: flake output `homeManagerModules` has been renamed to `homeModules` and will be removed after 26.05." self.homeModules;
};
perSystem.stylix.aliases = [
{
output = "apps";
old = "docs";
new = "doc";
until = 2511;
}
{
output = "packages";
old = "docs";
new = "doc";
until = 2511;
}
];
}