mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
Import Home Manager modules when enabled at system level 🚸
`stylix.home-manager.enable = true` causes an error unless the Home Manager modules are imported. It makes sense to add them automatically.
This commit is contained in:
parent
fbad7b1b0c
commit
02f0297038
2 changed files with 3 additions and 1 deletions
|
@ -62,6 +62,7 @@
|
|||
(import ./stylix/nixos {
|
||||
inherit (self.packages.${pkgs.system}) palette-generator;
|
||||
base16 = base16.lib args;
|
||||
homeManagerModule = self.homeManagerModules.stylix;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ palette-generator, base16 }:
|
||||
{ palette-generator, base16, homeManagerModule }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
|
@ -19,6 +19,7 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.sharedModules = [
|
||||
homeManagerModule
|
||||
{ stylix.useSystemTheme = lib.mkOverride 99 cfg.useSystemTheme; }
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue