Fix propagating modules to home-manager

If a NixOS config was not setting, config.home-manager.useGlobalPkgs to
true, propagating the modules would fail due to setting a nested list
instead of a single list like intended.
This commit is contained in:
Archit Gupta 2025-06-15 20:08:47 -07:00
parent 38931a25a0
commit 6115244234

View File

@ -33,7 +33,7 @@ in
# Propagate module to home-manager when using its nixos module
home-manager.sharedModules =
optional (! config.home-manager.useGlobalPkgs)
[ flakeConfig.propagationModule ];
flakeConfig.propagationModule;
})
// {
# Give access to flakelight module args under `flake` arg.