0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

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.
This commit is contained in:
Fabian Möller 2023-05-12 14:56:23 +02:00
parent 24833dd608
commit c51fe112cc
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31
3 changed files with 12 additions and 0 deletions

View file

@ -515,6 +515,10 @@ in
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;
};
};