Skip to content

Commit

Permalink
feat(lib/default): add internalSystemExtraModule
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Aug 18, 2024
1 parent b442d8f commit fc58503
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ in {
exclude ? [],
recursive ? true,
specialArgs ? {},
internalSystemExtraModule ? (
if isHomeManager
then {}
else {nixpkgs.hostPlatform = "x86_64-linux";} # just a plug; FIXME
),
}: let
files = umport {inherit paths exclude recursive;};
apply = import ./apply.nix {inherit lib homeManagerUser isHomeManager myconfigName;};
Expand Down Expand Up @@ -70,7 +75,7 @@ in {
host.homeManagerSystem
isHomeManager;

inherit ((system {} "useless" false)) config;
inherit ((system internalSystemExtraModule "useless" false)) config;
inherit (config.${myconfigName}) hosts rices;
in
(lib.concatMapAttrs (riceName: rice:
Expand Down

0 comments on commit fc58503

Please sign in to comment.