Hacky fix for darwin

This commit is contained in:
Ben Buscarino 2022-03-10 23:53:13 -05:00
parent 06dba5f3b4
commit 062bc257bd

View File

@ -161,7 +161,7 @@ let
config = selectedNixpkgs.config // config.nixpkgs.config;
} // { inherit (selectedNixpkgs) name input; };
}
else { _module.args.pkgs = selectedNixpkgs; })
else {})
(optionalAttrs (options ? system.configurationRevision) {
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
@ -178,13 +178,16 @@ let
{
# at this point we assume, that an evaluator at least
# uses nixpkgs.lib to evaluate modules.
_module.args = { inherit inputs; } // host.extraArgs;
_module.args = (optionalAttrs (host.output != "darwinConfigurations"){ inherit inputs; }) // host.extraArgs;
}
];
})
] ++ host.modules;
inherit specialArgs;
} // (optionalAttrs (host.output == "nixosConfigurations") {
} // (optionalAttrs (host.output == "darwinConfigurations") {
inherit inputs;
pkgs = selectedNixpkgs;
}) // (optionalAttrs (host.output == "nixosConfigurations") {
inherit lib baseModules;
specialArgs = nixosSpecialArgs // specialArgs;
}));