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:
Jason Bowman 2026-05-25 21:05:03 -07:00 committed by GitHub
parent c1456cc4ba
commit 8fbb6e8561
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};
}
)
]
)
);