stylix: rename homeManagerModules to homeModules (#1267)
Link: https://github.com/danth/stylix/pull/1267 Link: https://github.com/nix-community/home-manager/pull/6406 Reviewed-by: eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com> Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
7566bc0150
commit
0e5b1613bd
3 changed files with 14 additions and 9 deletions
|
|
@ -18,7 +18,7 @@ let
|
|||
homeManagerConfiguration = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
inputs.self.homeManagerModules.stylix
|
||||
inputs.self.homeModules.stylix
|
||||
./settings.nix
|
||||
{
|
||||
home = {
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ by someone else.
|
|||
homeConfigurations."«username»" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
modules = [
|
||||
stylix.homeManagerModules.stylix
|
||||
stylix.homeModules.stylix
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
|
@ -192,7 +192,7 @@ If you haven't enabled flakes yet or don't want to use this feature,
|
|||
enabled. This means that once you have a copy of this repo, using either a local
|
||||
checkout, [niv](https://github.com/nmattia/niv), or any other method, you can
|
||||
import it to get the NixOS module as the `nixosModules.stylix` attribute and the
|
||||
Home Manager module as the `homeManagerModules.stylix` attribute.
|
||||
Home Manager module as the `homeModules.stylix` attribute.
|
||||
|
||||
```nix
|
||||
let
|
||||
|
|
@ -204,7 +204,7 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [ (import stylix).homeManagerModules.stylix ];
|
||||
imports = [ (import stylix).homeModules.stylix ];
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
|
|
|||
15
flake.nix
15
flake.nix
|
|
@ -259,13 +259,13 @@
|
|||
paletteGenerator =
|
||||
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
|
||||
base16 = base16.lib args;
|
||||
homeManagerIntegration.module = self.homeManagerModules.stylix;
|
||||
homeManagerIntegration.module = self.homeModules.stylix;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
homeManagerModules.stylix =
|
||||
homeModules.stylix =
|
||||
{ pkgs, ... }@args:
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
paletteGenerator =
|
||||
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
|
||||
base16 = base16.lib args;
|
||||
homeManagerIntegration.module = self.homeManagerModules.stylix;
|
||||
homeManagerIntegration.module = self.homeModules.stylix;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
@ -308,10 +308,15 @@
|
|||
paletteGenerator =
|
||||
self.packages.${pkgs.stdenv.hostPlatform.system}.palette-generator;
|
||||
base16 = base16.lib args;
|
||||
homeManagerIntegration.module = self.homeManagerModules.stylix;
|
||||
homeManagerIntegration.module = self.homeModules.stylix;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
//
|
||||
# Drop this alias after 25.11
|
||||
nixpkgs.lib.optionalAttrs (!nixpkgs.lib.oldestSupportedReleaseIsAtLeast 2511) {
|
||||
homeManagerModules = builtins.warn "stylix: flake output `homeManagerModules` has been renamed to `homeModules`" self.homeModules;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue