mirror of
https://github.com/gytis-ivaskevicius/flake-utils-plus.git
synced 2024-08-17 03:50:24 +03:00
Hacky fix for darwin
This commit is contained in:
parent
06dba5f3b4
commit
062bc257bd
@ -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;
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user