home-manager-integration: guard useGlobalPkgs overlay disable on autoImport (#2324)
Link: https://github.com/nix-community/stylix/pull/2324 Reviewed-by: 0xda157 <da157@voidq.com>
This commit is contained in:
parent
c1456cc4ba
commit
8fbb6e8561
1 changed files with 11 additions and 5 deletions
|
|
@ -223,11 +223,17 @@ in
|
|||
]
|
||||
++ lib.optionals config.stylix.homeManagerIntegration.followSystem copyModules;
|
||||
})
|
||||
(lib.mkIf config.home-manager.useGlobalPkgs {
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
config.stylix.overlays.enable = false;
|
||||
};
|
||||
})
|
||||
(lib.mkIf
|
||||
(
|
||||
config.stylix.homeManagerIntegration.autoImport
|
||||
&& config.home-manager.useGlobalPkgs
|
||||
)
|
||||
{
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
config.stylix.overlays.enable = false;
|
||||
};
|
||||
}
|
||||
)
|
||||
]
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue