treewide: pass system argument to eval-config.nix

Calling `eval-config.nix` without a `system` from a Nix flake fails with
`error: attribute 'currentSystem' missing` since #230523. Setting
`system = null` removes the use of `currentSystem` and instead uses the
value from the `nixpkgs` module.

Changed files
+12
nixos
modules
virtualisation
tests
pkgs
top-level
+4
nixos/modules/virtualisation/nixos-containers.nix
···
in [ extraConfig ] ++ (map (x: x.value) defs);
prefix = [ "containers" name ];
inherit (config) specialArgs;
}).config;
};
};
···
in [ extraConfig ] ++ (map (x: x.value) defs);
prefix = [ "containers" name ];
inherit (config) specialArgs;
+
+
# The system is inherited from the host above.
+
# Set it to null, to remove the "legacy" entrypoint's non-hermetic default.
+
system = null;
}).config;
};
};
+4
nixos/tests/containers-imperative.nix
···
system.stateVersion = "18.03";
};
};
};
in with pkgs; [
stdenv stdenvNoCC emptyContainer.config.containers.foo.path
···
system.stateVersion = "18.03";
};
};
+
+
# The system is inherited from the host above.
+
# Set it to null, to remove the "legacy" entrypoint's non-hermetic default.
+
system = null;
};
in with pkgs; [
stdenv stdenvNoCC emptyContainer.config.containers.foo.path
+4
pkgs/top-level/all-packages.nix
···
then configuration
else [configuration]
);
};
in
c.config.system.build // c;
···
then configuration
else [configuration]
);
+
+
# The system is inherited from the current pkgs above.
+
# Set it to null, to remove the "legacy" entrypoint's non-hermetic default.
+
system = null;
};
in
c.config.system.build // c;