11.stylix/flake/modules.nix
Matt Sturgeon 88e1c23df2
flake: fix and refactor the homeManagerModules alias (#1287)
Fixes: 0e5b1613bd ("stylix: rename homeManagerModules to homeModules (#1267)")
Link: https://github.com/danth/stylix/pull/1287

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-17 00:37:10 +02:00

75 lines
1.9 KiB
Nix

{
inputs,
self,
lib,
...
}:
{
flake = {
nixosModules.stylix =
{ pkgs, ... }@args:
{
imports = [
(lib.modules.importApply "${self}/stylix/nixos" inputs)
{
stylix = {
inherit inputs;
paletteGenerator =
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
base16 = inputs.base16.lib args;
homeManagerIntegration.module = self.homeModules.stylix;
};
}
];
};
homeModules.stylix =
{ pkgs, ... }@args:
{
imports = [
(lib.modules.importApply "${self}/stylix/hm" inputs)
{
stylix = {
inherit inputs;
paletteGenerator =
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
base16 = inputs.base16.lib args;
};
}
];
};
darwinModules.stylix =
{ pkgs, ... }@args:
{
imports = [
(lib.modules.importApply "${self}/stylix/darwin" inputs)
{
stylix = {
inherit inputs;
paletteGenerator =
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
base16 = inputs.base16.lib args;
homeManagerIntegration.module = self.homeModules.stylix;
};
}
];
};
nixOnDroidModules.stylix =
{ pkgs, ... }@args:
{
imports = [
(lib.modules.importApply "${self}/stylix/droid" inputs)
{
stylix = {
paletteGenerator =
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
base16 = inputs.base16.lib args;
homeManagerIntegration.module = self.homeModules.stylix;
};
}
];
};
};
}