remove extraArgs dependancy

This commit is contained in:
Sean Buckley 2022-02-04 13:41:53 -05:00
parent c02a1949bb
commit db667ab72a

View file

@ -1,4 +1,5 @@
{ self { self
, hosts
, modules ? [ ] , modules ? [ ]
}: }:
@ -97,10 +98,9 @@ in
{ meta.nixpkgs = nixpkgs.legacyPackages."x86_64-linux"; } // { meta.nixpkgs = nixpkgs.legacyPackages."x86_64-linux"; } //
builtins.mapAttrs builtins.mapAttrs
(name: value: { (name: value: {
nixpkgs.system = value.config.nixpkgs.system; # needed for multi-arch deployments imports = value.modules ++ [
imports = value.extraArgs.modules ++ [
({ config, ... }: { inherit (config.sconfig) deployment; }) ({ config, ... }: { inherit (config.sconfig) deployment; })
]; ];
}) })
(nixosConfigurations); (hosts);
} }