mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
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:
parent
57b8882cb9
commit
2e78edbd60
@ -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, ... }: {
|
||||
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user