flake-parts/setups/{home-manager,wrapper-manager}: set specialArgs

Though both integrations are not complete with config-specific
specialArgs not completely possible to be inserted.
This commit is contained in:
Gabriel Arazas 2025-04-06 16:00:30 +08:00
parent 57b8882cb9
commit 2e78edbd60
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 17 additions and 0 deletions

View File

@ -283,6 +283,11 @@ in {
# setups are already done so...
home-manager.useUserPackages = lib.mkDefault true;
home-manager.useGlobalPkgs = lib.mkDefault true;
# !!! Welp, this is basically incomplete since we also have
# to consider user-specific specialArgs which is not set.
home-manager.extraSpecialArgs =
partsConfig.setups.home-manager.sharedSpecialArgs;
})
(lib.mkIf hasHomeManagerUsers ({ lib, pkgs, ... }: {

View File

@ -138,6 +138,12 @@ in {
modules =
[
inputs.${config.wrapper-manager.branch}.nixosModules.default
{
# Welp, it's not complete since each package will not its
# package-specific specialArgs.
wrapper-manager.extraSpecialArgs = cfg.specialArgs;
}
];
};
})
@ -153,6 +159,12 @@ in {
modules =
[
inputs.${config.wrapper-manager.branch}.homeModules.default
{
# Welp, it's not complete since each package will not its
# package-specific specialArgs.
wrapper-manager.extraSpecialArgs = cfg.specialArgs;
}
];
};
})